Skip to content

Commit 877ac76

Browse files
authored
chore: replace substr with substring (#678)
1 parent 81740ff commit 877ac76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fake.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class Fake {
6464

6565
// extract method name from between the {{ }} that we found
6666
// for example: {{name.firstName}}
67-
const token = str.substr(start + 2, end - start - 2);
67+
const token = str.substring(start + 2, end);
6868
let method = token.replace('}}', '').replace('{{', '');
6969

7070
// console.log('method', method)

0 commit comments

Comments
 (0)