Skip to content

Commit

Permalink
fix(fs): allow +$ inside paths (#21482)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Apr 13, 2023
1 parent 139739f commit 3d23793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/fs/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { logger } from '../../logger';

// http://www.mtu.edu/umc/services/digital/writing/characters-avoid/
// 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 {
if (!path.startsWith(baseDir)) {
Expand Down

0 comments on commit 3d23793

Please sign in to comment.