diff --git a/eslint/rules/bad-sim-text.js b/eslint/rules/bad-sim-text.js index b41477e7e..6bf885b20 100644 --- a/eslint/rules/bad-sim-text.js +++ b/eslint/rules/bad-sim-text.js @@ -33,10 +33,11 @@ module.exports = function( context ) { // DOT/Util.toFixed or DOT/Util.toFixedNumber should be used instead of toFixed. // JavaScript's toFixed is notoriously buggy. Behavior differs depending on browser, // because the spec doesn't specify whether to round or floor. - { - name: '.toFixed(', // support regex with english names this way - regex: new RegExp( '(?