diff --git a/lib/readline-sync.js b/lib/readline-sync.js index 7da0f1f..35fcb3a 100644 --- a/lib/readline-sync.js +++ b/lib/readline-sync.js @@ -694,7 +694,7 @@ function getPhCharlist(param) { from = matches[1].charCodeAt(0); to = matches[2].charCodeAt(0); step = from < to ? 1 : -1; - for (code = from; code !== to + step; code += step) { text += String.fromCharCode(code); } /* ESLint bug */ // eslint-disable-line no-unmodified-loop-condition + for (code = from; code !== to + step; code += step) { text += String.fromCharCode(code); } return text; }