Skip to content
Snippets Groups Projects
Unverified Commit 09e43acd authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(fs): allow `{}` inside paths (#21530)

parent d8400d30
No related merge requests found
...@@ -5,7 +5,7 @@ import { logger } from '../../logger'; ...@@ -5,7 +5,7 @@ import { logger } from '../../logger';
// http://www.mtu.edu/umc/services/digital/writing/characters-avoid/ // http://www.mtu.edu/umc/services/digital/writing/characters-avoid/
// We allow spaces, but not newlines // We allow spaces, but not newlines
const restricted = /[[\]#%&{}<>*?\b\n\r\0!'"|‘“^`]/; const restricted = /[[\]#%&<>*?\b\n\r\0!'"|‘“^`]/;
function assertBaseDir(path: string, baseDir: string): void { function assertBaseDir(path: string, baseDir: string): void {
if (!path.startsWith(baseDir)) { if (!path.startsWith(baseDir)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment