summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-14 14:34:43 +0300
committerAndrew Dolgov <[email protected]>2020-09-14 14:34:43 +0300
commitb8e5b9c7b7a94de28c6e51a7d996668d271e6b10 (patch)
tree7b983857d399a39b8829bab7f0c3118c0c3f59b2 /js
parent2f63f918e7300e809ae0800aa79a30c79e4a148c (diff)
when looking up words, strip hyphens (also w/ wiktionary)
Diffstat (limited to 'js')
-rw-r--r--js/reader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/reader.js b/js/reader.js
index 55d683d..c7172e5 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -885,6 +885,8 @@ const Reader = {
$(".header,.footer").fadeIn();
},
lookupWord: function(word, callback) {
+ word = word.replace(/­/g, "");
+
$.post("backend.php", {op: 'define', word: word}, function (data) {
if (data) {