Skip to content

Commit

Permalink
escape regex dot
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jul 6, 2024
1 parent 27e9d12 commit d420bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/pages/settings/dictionary-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class DictionaryEntry {
* @returns {boolean}
*/
_compareRevisions(current, latest) {
const simpleVersionTest = /^(\d+.)*\d+$/;
const simpleVersionTest = /^(\d+\.)*\d+$/;
if (!simpleVersionTest.test(current) || !simpleVersionTest.test(latest)) {
return current < latest;
}
Expand Down

0 comments on commit d420bb7

Please sign in to comment.