mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-27 18:16:15 -04:00
fix: use String.raw in unit test
This commit is contained in:
parent
11c0ac7777
commit
49083d7154
1 changed files with 1 additions and 1 deletions
|
@ -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: ',
|
text: 'Nov 11 21:03:26 abc2 def.sh[1]: \nNov 11 21:03:26 abc2 def.sh: ',
|
||||||
flags: 'gm',
|
flags: 'gm',
|
||||||
result: [
|
result: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue