bpms_site/.svn/pristine/7f/7f3c44b7ff98635a0cd039ac51f6703d8c0ab8db.svn-base
2025-11-02 16:38:49 +03:30

17 lines
415 B
Plaintext

export function getSourceMapUrl(fileContents) {
const regex = /\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm;
let match = null;
for(;;){
let next = regex.exec(fileContents);
if (next == null) {
break;
}
match = next;
}
if (!(match && match[1])) {
return null;
}
return match[1].toString();
}
//# sourceMappingURL=getSourceMapUrl.js.map