This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
@@ -0,0 +1,8 @@
'use strict';
module.exports = function getFileExtension(asset) {
var extRegex = /\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/i;
var ext = asset.match(extRegex);
return ext ? ext[0].slice(1) : '';
};