mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
replace all scramtags not just some
This commit is contained in:
parent
5d71685997
commit
3af7c2d9fa
1 changed files with 2 additions and 4 deletions
|
@ -48,10 +48,8 @@ export default function (client: ScramjetClient, self: Self) {
|
||||||
.substring(scramtagstart + scramtag_ident.length, scramtagend)
|
.substring(scramtagstart + scramtag_ident.length, scramtagend)
|
||||||
.split(" ")[1];
|
.split(" ")[1];
|
||||||
|
|
||||||
// delete the scramtag now that we're done with it
|
// delete all scramtags inside the function (and nested ones!!)
|
||||||
stringified =
|
stringified = stringified.replace(/\/\*scramtag.*?\*\//g, "");
|
||||||
stringified.slice(0, scramtagstart) +
|
|
||||||
stringified.slice(scramtagend + 2);
|
|
||||||
|
|
||||||
const maps = sourcemaps[tag];
|
const maps = sourcemaps[tag];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue