Skip to content

Commit

Permalink
Change regex (redhat-developer#885)
Browse files Browse the repository at this point in the history
Changes regex to be more determenistic.
  • Loading branch information
gorkem authored Jun 12, 2023
1 parent 6eda5f6 commit c5f138f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageservice/services/yamlHover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class YAMLHover {

const createHover = (contents: string): Hover => {
if (this.indentation !== undefined) {
const indentationMatchRegex = new RegExp(this.indentation, 'g');
const indentationMatchRegex = new RegExp(` {${this.indentation.length}}`, 'g');
contents = contents.replace(indentationMatchRegex, ' ');
}

Expand Down

0 comments on commit c5f138f

Please sign in to comment.