mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-25 12:38:57 +02:00
refactor: install eslint-plugin-regexp (#6906)
* refactor: install eslint-plugin-regexp * simplify * simplify * fix
This commit is contained in:
parent
127183e70e
commit
3a4b9b4c30
23 changed files with 145 additions and 83 deletions
2
jest/snapshotPathNormalizer.js
vendored
2
jest/snapshotPathNormalizer.js
vendored
|
@ -146,7 +146,7 @@ function normalizePaths(value) {
|
|||
|
||||
// Convert win32 backslash's to forward slashes, \ -> /;
|
||||
// ignore some that look like escape sequences.
|
||||
(val) => val.replace(/\\(?!["])/g, '/'),
|
||||
(val) => val.replace(/\\(?!")/g, '/'),
|
||||
];
|
||||
|
||||
let result = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue