Stop erroneous match of midfile sourceMappingUrl (#19084)

This commit is contained in:
Wesley Wigham
2017-10-10 16:41:54 -07:00
committed by GitHub
parent d086b637c5
commit edf0a95e89

View File

@@ -619,7 +619,7 @@ namespace ts.projectSystem {
assert.isTrue(host.fileExists(expectedOutFileName));
const outFileContent = host.readFile(expectedOutFileName);
verifyContentHasString(outFileContent, file1.content);
verifyContentHasString(outFileContent, `//# sourceMappingURL=${outFileName}.map`);
verifyContentHasString(outFileContent, `//# ${"sourceMappingURL"}=${outFileName}.map`); // Sometimes tools can sometimes see this line as a source mapping url comment, so we obfuscate it a little
// Verify map file
const expectedMapFileName = expectedOutFileName + ".map";