Initial commit
This commit is contained in:
9
theme/helpers/remove_extension.js
Normal file
9
theme/helpers/remove_extension.js
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = (filename) => {
|
||||
let dot = filename.lastIndexOf(".");
|
||||
|
||||
if (dot < 0) {
|
||||
return filename;
|
||||
}
|
||||
|
||||
return filename.substring(0, dot);
|
||||
};
|
||||
Reference in New Issue
Block a user