From 1d5867907ecbf553556fe6ad790b6d6658aedba3 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 7 Apr 2023 12:56:29 -0700 Subject: [PATCH] [Refactor] `parse`: avoid shadowing a function arg --- parse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.js b/parse.js index 94e8461..30f7451 100644 --- a/parse.js +++ b/parse.js @@ -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 = {}; } @@ -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 [];