Skip to content

Commit

Permalink
[Refactor] parse: avoid shadowing a function arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 7, 2023
1 parent 6780ec5 commit 1d58679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for (var i = 0; i < 4; i++) {
}
var startsWithToken = new RegExp('^' + TOKEN);

function parseInternal(s, env, opts) {
function parseInternal(string, env, opts) {
if (!opts) {
opts = {};
}
Expand All @@ -43,7 +43,7 @@ function parseInternal(s, env, opts) {
'(' + BAREWORD + '|' + SINGLE_QUOTE + '|' + DOUBLE_QUOTE + ')+'
].join('|'), 'g');

var matches = s.match(chunker);
var matches = string.match(chunker);

if (!matches) {
return [];
Expand Down

0 comments on commit 1d58679

Please sign in to comment.