Skip to content

Commit

Permalink
Fix regression of valentjn/vscode-ltex#161
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed Jan 24, 2021
1 parent c3d3f59 commit 2ce1685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fix BibT<sub>E</sub>X field `seealso` not ignored, ignore `category` and `parent` (see [vscode-ltex#211](https://github.com/valentjn/vscode-ltex/issues/211))
- Disable `UPPERCASE_SENTENCE_START` in BibT<sub>E</sub>X files (see [vscode-ltex#211](https://github.com/valentjn/vscode-ltex/issues/211))
- Move rule ID to the end of diagnostic messages as VS Code truncates the messages if the Problems panel is narrow (fixes [vscode-ltex#233](https://github.com/valentjn/vscode-ltex/issues/233))
- Fix regression that messages of possible spelling mistakes are not prepended with the respective unknown words (see [vscode-ltex#161](https://github.com/valentjn/vscode-ltex/issues/161))

## 9.1.0 (January 24, 2021)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public LanguageToolRuleMatch(@Nullable String ruleId, @Nullable String sentence,
this.message = "'" + unknownWord + "': " + this.message;
}

this.message = twoOrMoreSpacesPattern.matcher(message).replaceAll(" ").trim();
this.message = twoOrMoreSpacesPattern.matcher(this.message).replaceAll(" ").trim();
}

public @Nullable String getRuleId() {
Expand Down

0 comments on commit 2ce1685

Please sign in to comment.