Add .gitignore to exclude all node packages and lock files
This commit is contained in:
Generated
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getAssetDisplayName = void 0;
|
||||
const getAssetDisplayName = (filename) => {
|
||||
if (/data:|blob:/.test(filename.substring(0, 5))) {
|
||||
return 'Data URL';
|
||||
}
|
||||
const splitted = filename
|
||||
.split('/')
|
||||
.map((s) => s.split('\\'))
|
||||
.flat(1);
|
||||
return splitted[splitted.length - 1];
|
||||
};
|
||||
exports.getAssetDisplayName = getAssetDisplayName;
|
||||
Reference in New Issue
Block a user