add node modules
This commit is contained in:
11
node_modules/rechoir/lib/extension.js
generated
vendored
Normal file
11
node_modules/rechoir/lib/extension.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const path = require('path');
|
||||
|
||||
const EXTRE = /^[.]?[^.]+([.].*)$/;
|
||||
|
||||
module.exports = function (input) {
|
||||
var extension = EXTRE.exec(path.basename(input));
|
||||
if (!extension) {
|
||||
return;
|
||||
}
|
||||
return extension[1];
|
||||
};
|
Reference in New Issue
Block a user