Skip to content

Commit bcba543

Browse files
committed
Fix typo in word substitute
1 parent 73d51fc commit bcba543

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/processor/generic-processor.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export abstract class GenericProcessor {
2424
}
2525

2626
replaceValueWithSubstitute(value: string) {
27-
const substitue = `vscode-yaml-sort.${this.filter}.${this.store.size}`
28-
this.store.set(substitue, value)
29-
this.text = this.text.replace(value, substitue)
27+
const substitute = `vscode-yaml-sort.${this.filter}.${this.store.size}`
28+
this.store.set(substitute, value)
29+
this.text = this.text.replace(value, substitute)
3030
}
3131

3232
postprocess() {
@@ -35,8 +35,8 @@ export abstract class GenericProcessor {
3535
})
3636
}
3737

38-
replaceSubstituteWithValue(substitue: string, value: string) {
39-
const match = new RegExp(`('|")?${substitue}('|")?`)
38+
replaceSubstituteWithValue(substitute: string, value: string) {
39+
const match = new RegExp(`('|")?${substitute}('|")?`)
4040
this.text = this.text.replace(match, value)
4141
}
4242
}

0 commit comments

Comments
 (0)