From 2f63f918e7300e809ae0800aa79a30c79e4a148c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 14 Sep 2020 14:32:23 +0300 Subject: when looking up words, strip hyphens --- js/dict.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/dict.js b/js/dict.js index 1c802e7..d85b75c 100644 --- a/js/dict.js +++ b/js/dict.js @@ -10,7 +10,7 @@ $(document).ready(function() { const sel = getSelection().toString().trim(); - if (sel.match(/^\w+$/)) { + if (sel.match(/^[\w­]+$/)) { Reader.lookupWord(sel, function() { if (typeof EpubeApp != "undefined") EpubeApp.showActionBar(false); -- cgit v1.2.3