Skip to content

Commit

Permalink
Use eslint-disable-next-line instead of eslint-disable
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Sep 17, 2019
1 parent 5c7501c commit 4e7c1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const expandRange = (args, options) => {
const value = `[${args.join('-')}]`;

try {
/* eslint-disable no-new */
/* eslint-disable-next-line no-new */
new RegExp(value);
} catch (ex) {
return args.map(v => utils.escapeRegex(v)).join('..');
Expand Down

0 comments on commit 4e7c1fd

Please sign in to comment.