Skip to content

Commit

Permalink
fix: do not use previous value for slash token
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Dec 24, 2019
1 parent 606e35f commit 5e4cd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ const parse = (input, options) => {
state.output += prior.output + prev.output;
consume(value + advance());

push({ type: 'slash', value, output: '' });
push({ type: 'slash', value: '/', output: '' });
continue;
}

Expand All @@ -850,7 +850,7 @@ const parse = (input, options) => {
prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
state.output = prev.output;
consume(value + advance());
push({ type: 'slash', value, output: '' });
push({ type: 'slash', value: '/', output: '' });
continue;
}

Expand Down

0 comments on commit 5e4cd68

Please sign in to comment.