Skip to content

Commit 2c56bb3

Browse files
committed
fix: use String.raw in unit test
1 parent 434001a commit 2c56bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/regex-tester/regex-tester.service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const regexesData = [
9393
],
9494
},
9595
{
96-
regex: '\\s([^\\s\\[]+)(?:\\[(\\d+)\\])?:\\s',
96+
regex: String.raw`\s([^\s\[]+)(?:\[(\d+)\])?:\s`,
9797
text: 'Nov 11 21:03:26 abc2 def.sh[1]: \nNov 11 21:03:26 abc2 def.sh: ',
9898
flags: 'gm',
9999
result: [

0 commit comments

Comments
 (0)