lix-website/themes/lix/assets/bootstrap/node_modules/rechoir/lib/extension.js
2024-04-26 22:49:34 -06:00

12 lines
218 B
JavaScript

const path = require('path');
const EXTRE = /^[.]?[^.]+([.].*)$/;
module.exports = function (input) {
var extension = EXTRE.exec(path.basename(input));
if (!extension) {
return;
}
return extension[1];
};