grab text from clipboard if it contains ellipses

This commit is contained in:
wareya committed 2019-07-03 00:15:04 -04:00
1 parent 9f2d70fbbb
commit 595edf4440
1 file changed
+2 -1
+2 -1
View File
@@ -74,7 +74,8 @@ browser.storage.onChanged.addListener((updates, storageArea) =>
function reader_might_have_japanese(text) function reader_might_have_japanese(text)
{ {
for(let char of text) for(let char of text)
if(char && char.length > 0 && char.codePointAt(0) >= 0x2E80) if(char && char.length > 0 &&
(char.codePointAt(0) >= 0x2E80 || char === "…"))
return true; return true;
return false; return false;
} }