Skip to content

Commit 9a814e5

Browse files
committed
Switch to startsWith.
1 parent 7894b72 commit 9a814e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ async function handleCrashFileRead(crashDirectory: string, crashFile: string, cr
12241224
if (ret?.output === funcStr) {
12251225
ret = await util.spawnChildProcess(filtPath, [funcStr], undefined, true).catch(logAndReturn.undefined);
12261226
}
1227-
if (ret !== undefined && ret.succeeded && !ret.output.includes("Could not open input file")) {
1227+
if (ret !== undefined && ret.succeeded && !ret.output.startsWith("Could not open input file")) {
12281228
funcStr = ret.output;
12291229
funcStr = funcStr.replace(/std::(?:__1|__cxx11)/g, "std"); // simplify std namespaces.
12301230
funcStr = funcStr.replace(/std::basic_/g, "std::");

0 commit comments

Comments
 (0)