grab text from clipboard if it contains ellipses
This commit is contained in:
1 parent
9f2d70fbbb
commit
595edf4440
1 file changed
+2
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user