Skip to content

Commit 7c8879f

Browse files
committed
fix test runner
1 parent 30384a0 commit 7c8879f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/test/testing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const fourslashLikeTester = (contents: string, fileName = entrypoint) =>
138138
export const fileContentsSpecialPositions = (contents: string, fileName = entrypoint) => {
139139
const cursorPositions: [number[], number[], number[]] = [[], [], []]
140140
const cursorPositionsOnly: [number[], number[], number[]] = [[], [], []]
141-
const replacement = /\/\*([tf\d]o?)\*\//g
141+
const replacement = /\/\*((t|f|\d+)o?)\*\//g
142142
let currentMatch: RegExpExecArray | null | undefined
143143
while ((currentMatch = replacement.exec(contents))) {
144144
const offset = currentMatch.index

0 commit comments

Comments
 (0)