Skip to content

Commit dfbed67

Browse files
committed
Fix regex
1 parent 5dfdbdb commit dfbed67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testRunner/unittests/tsserver/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ namespace ts.projectSystem {
109109
.replace(/getExportInfoMap: done in \d+(?:\.\d+)?/g, `getExportInfoMap: done in *`)
110110
.replace(/collectAutoImports: \d+(?:\.\d+)?/g, `collectAutoImports: *`)
111111
.replace(/dependencies in \d+(?:\.\d+)?/g, `dependencies in *`)
112-
.replace(/\"exportMapKey\"\:\"\w(\w|\d)*\|\d+\|/g, match => match.replace(/\|\d+\|/, `|*|`))
112+
.replace(/\"exportMapKey\"\:\"[_$a-zA-Z][_$_$a-zA-Z0-9]*\|\d+\|/g, match => match.replace(/\|\d+\|/, `|*|`))
113113
)
114114
};
115115
}

0 commit comments

Comments
 (0)