Skip to content

Commit

Permalink
fix(custom): 修复 反斜杠问题
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKk committed Dec 30, 2023
1 parent 10f9e4b commit feebcad
Show file tree
Hide file tree
Showing 3 changed files with 42,750 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ tsconfig.build.json
node_modules
npm-debug.log
npm-shrinkwrap.json
package-lock.json


# Numerous always-ignore extensions
*.bak
Expand Down
2 changes: 1 addition & 1 deletion __standardstests__/webpack-plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('test webpack plugins standards', () => {
projects.forEach(({ name, location }) => {
expect(micromatch.isMatch(name, [RULES.NAME])).toBeTruthy()

const folder = location.replace(`${FOLDER}/`, '')
const folder = location.replace(new RegExp(`${FOLDER}(?:[/\\\\]+?)`), '')
expect(micromatch.isMatch(folder, [RULES.FOLDER])).toBeTruthy()
})
})
Expand Down
Loading

0 comments on commit feebcad

Please sign in to comment.