summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-14 14:32:23 +0300
committerAndrew Dolgov <[email protected]>2020-09-14 14:32:23 +0300
commit2f63f918e7300e809ae0800aa79a30c79e4a148c (patch)
treec3a5f21ecf34793cae9cb88c0f576b8eb6f3bc77 /js
parent3e244fc9bb11cf88ca042b26d4242c8a9b69670d (diff)
when looking up words, strip hyphens
Diffstat (limited to 'js')
-rw-r--r--js/dict.js2
1 files changed, 1 insertions, 1 deletions
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);