We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975d553 commit 381c9a7Copy full SHA for 381c9a7
1 file changed
test/common/assertSnapshot.js
@@ -116,9 +116,9 @@ function transformPath(dirname, replacement) {
116
const escapedWinPath = RegExp.escape(winPath);
117
118
// Use negative lookahead to prevent matching if followed by alphanumeric or underscore
119
- const urlEncodedRegex = new RegExp(escapedUrlEncoded + '(?![\\w/])', flags);
120
- const dirnameRegex = new RegExp(escapedDirname + '(?![\\w/])', flags);
121
- const winPathRegex = new RegExp(escapedWinPath + '(?![\\w/])', flags);
+ const urlEncodedRegex = new RegExp(escapedUrlEncoded + '(?![\\w])', flags);
+ const dirnameRegex = new RegExp(escapedDirname + '(?![\\w])', flags);
+ const winPathRegex = new RegExp(escapedWinPath + '(?![\\w])', flags);
122
123
return (str) => {
124
return str.replaceAll('\\\'', "'")
0 commit comments