Skip to content

Commit

Permalink
Исправление ошибки проверки синтаксиса
Browse files Browse the repository at this point in the history
  • Loading branch information
lintest committed May 12, 2021
1 parent e210fd6 commit 3daf89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/turbo-gherkin/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class VanessaGherkinProvider {
};

protected splitWords(line: string): Array<string> {
let regexp = /(-?(\d*\.)?\d+|[A-zА-яЁё]+|"[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*'|<[^>]*>)/g;
let regexp = /"[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*'|<[^>]*>|[A-zА-яЁё]+|[^A-zА-яЁё\s]+/g;
return line.match(regexp) || [];
}

Expand Down

0 comments on commit 3daf89f

Please sign in to comment.