Skip to content

Commit

Permalink
fix: wrong backslash escape handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ahochsteger committed Feb 9, 2024
1 parent a5a090c commit fd39b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/processors/BaseProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export abstract class BaseProcessor {
MIT.STRING,
result[i],
'The matching regex group number as defined in the match config (e.g.: `"' +
value.replace("\\", "\\\\") +
value.replace("[\\]", "\\\\") +
'"`).',
)
}
Expand All @@ -83,7 +83,7 @@ export abstract class BaseProcessor {
MIT.STRING,
groupValue,
'The matching named regex group name as defined in the match config (e.g.: `"' +
value.replace("\\", "\\\\") +
value.replace("[\\]", "\\\\") +
'"`).',
)
})
Expand Down

0 comments on commit fd39b72

Please sign in to comment.