mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix: use String.raw in unit test
This commit is contained in:
1 parent
434001a605
commit
2c56bb3e59
1 file changed
+1
-1
@@ -93,7 +93,7 @@ const regexesData = [
|
||||
],
|
||||
},
|
||||
{
|
||||
regex: '\\s([^\\s\\[]+)(?:\\[(\\d+)\\])?:\\s',
|
||||
regex: String.raw`\s([^\s\[]+)(?:\[(\d+)\])?:\s`,
|
||||
text: 'Nov 11 21:03:26 abc2 def.sh[1]: \nNov 11 21:03:26 abc2 def.sh: ',
|
||||
flags: 'gm',
|
||||
result: [
|
||||
|
||||
Reference in new issue
Block a user