minor clean-ups (#5282)

This commit is contained in:
Alex Lam S.L
2022-01-10 05:02:26 +00:00
committed by GitHub
parent 4b949f6686
commit caaa753861
7 changed files with 30 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ function read_source_map(name, toplevel) {
var match = /^# ([^\s=]+)=(\S+)\s*$/.exec(comment.value);
if (!match) break;
if (match[1] == "sourceMappingURL") {
match = /^data:application\/json(;.*?)?;base64,(\S+)$/.exec(match[2]);
match = /^data:application\/json(;.*?)?;base64,([^,]+)$/.exec(match[2]);
if (!match) break;
return to_ascii(match[2]);
}