Skip to content

Commit

Permalink
refactor(valid-title): use substring instead of substr (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Nov 5, 2022
1 parent 6f85b64 commit a1fd97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/valid-title.ts
Expand Up @@ -10,7 +10,7 @@ import {
} from './utils';

const trimFXprefix = (word: string) =>
['f', 'x'].includes(word.charAt(0)) ? word.substr(1) : word;
['f', 'x'].includes(word.charAt(0)) ? word.substring(1) : word;

const doesBinaryExpressionContainStringNode = (
binaryExp: TSESTree.BinaryExpression,
Expand Down

0 comments on commit a1fd97e

Please sign in to comment.