1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getAssetDisplayName = void 0;
|
4 | const getAssetDisplayName = (filename) => {
|
5 | if (/data:|blob:/.test(filename.substring(0, 5))) {
|
6 | return 'Data URL';
|
7 | }
|
8 | const splitted = filename
|
9 | .split('/')
|
10 | .map((s) => s.split('\\'))
|
11 | .flat(1);
|
12 | return splitted[splitted.length - 1];
|
13 | };
|
14 | exports.getAssetDisplayName = getAssetDisplayName;
|
15 | //# sourceMappingURL=get-asset-file-name.js.map |
\ | No newline at end of file |