Skip to content

Commit

Permalink
Merge pull request micromatch#52 from mrmlnc/trivial_fix_slash_type
Browse files Browse the repository at this point in the history
Do not use previous value for the slash token
  • Loading branch information
jonschlinkert committed Dec 26, 2019
2 parents 606e35f + 5e4cd68 commit c28408b
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 c28408b

Please sign in to comment.