1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/rechoir/lib/extension.js

12 lines
218 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
const path = require('path');
const EXTRE = /^[.]?[^.]+([.].*)$/;
module.exports = function (input) {
var extension = EXTRE.exec(path.basename(input));
if (!extension) {
return;
}
return extension[1];
};