We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
substring
substr
1 parent 6f85b64 commit a1fd97eCopy full SHA for a1fd97e
1 file changed
src/rules/valid-title.ts
@@ -10,7 +10,7 @@ import {
10
} from './utils';
11
12
const trimFXprefix = (word: string) =>
13
- ['f', 'x'].includes(word.charAt(0)) ? word.substr(1) : word;
+ ['f', 'x'].includes(word.charAt(0)) ? word.substring(1) : word;
14
15
const doesBinaryExpressionContainStringNode = (
16
binaryExp: TSESTree.BinaryExpression,
0 commit comments