We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
substring
substr
1 parent 6f85b64 commit a1fd97eCopy full SHA for a1fd97e
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