projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
60f19da4e98be7b8922d8cd009041a999325322d
[yaffs-website]
/
lib
/
extension.js
1
const path = require('path');
2
3
const EXTRE = /^[.]?[^.]+([.].*)$/;
4
5
module.exports = function (input) {
6
var extension = EXTRE.exec(path.basename(input));
7
if (!extension) {
8
return;
9
}
10
return extension[1];
11
};