--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
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];
|
||||
};
|
||||
Loading…
Reference in a new issue