Skip to content

Commit

Permalink
Merge pull request #534 from GhostManager/hotfix/case-insensitive-aut…
Browse files Browse the repository at this point in the history
…ocomplete

Case insensitive autocomplete
  • Loading branch information
chrismaddalena authored Sep 30, 2024
2 parents c6f7bbd + aa8e480 commit c986bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Reworked the CVSS calculators on findings to allow switching between CVSS v3/3.1 and v4 (Closes #232, #356, #387, and #509)
* Changes include the addition of the "modified" metrics like temporal, environmental, threat, and supplemental sections
* Changed autocomplete suggestions in the WYSIWYG editor to no longer be case-sensitive (Fixes #440)

### Fixed

Expand Down
3 changes: 2 additions & 1 deletion ghostwriter/static/js/tinymce/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@
columns: 1,
fetch: function (pattern) {
var matchedChars = evidenceFiles.filter(function (quote) {
return quote.text.indexOf(pattern) !== -1;
return quote.text.toLowerCase().includes(pattern.toLowerCase());

});
return new tinymce.util.Promise(function (resolve) {
var results = matchedChars.map(function (quote) {
Expand Down

0 comments on commit c986bb5

Please sign in to comment.