Skip to content

Commit a1fd97e

Browse files
authored
refactor(valid-title): use substring instead of substr (#1279)
1 parent 6f85b64 commit a1fd97e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/valid-title.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from './utils';
1111

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

1515
const doesBinaryExpressionContainStringNode = (
1616
binaryExp: TSESTree.BinaryExpression,

0 commit comments

Comments
 (0)