summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-08-29 15:12:22 +0200
committerYorhel <git@yorhel.nl>2022-08-29 15:12:24 +0200
commitda6091baa1f281503be77a376bd04e81f9ef514e (patch)
tree7480b817281794b2ba50878d35677638513e767f /elm
parentead00551e8a49daef8dded7ce372b55eee541157 (diff)
Elm: Recognize Inuktitut as a non-latin script
Fixes https://vndb.org/t2520.697
Diffstat (limited to 'elm')
-rw-r--r--elm/Lib/Util.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/Util.elm b/elm/Lib/Util.elm
index c4d51e50..7ded22b1 100644
--- a/elm/Lib/Util.elm
+++ b/elm/Lib/Util.elm
@@ -89,7 +89,7 @@ jap_ = Maybe.withDefault Regex.never (Regex.fromString "[\\u3000-\\u9fff\\uff00-
-- Not even close to comprehensive, just excludes a few scripts commonly found on VNDB.
nonlatin_ : Regex.Regex
-nonlatin_ = Maybe.withDefault Regex.never (Regex.fromString "[\\u3000-\\u9fff\\uff00-\\uff9f\\u0400-\\u04ff\\u1100-\\u11ff\\uac00-\\ud7af\\u0600-\\u06ff\\u0e00-\\u0e7f]")
+nonlatin_ = Maybe.withDefault Regex.never (Regex.fromString "[\\u3000-\\u9fff\\uff00-\\uff9f\\u0400-\\u04ff\\u1100-\\u11ff\\uac00-\\ud7af\\u0600-\\u06ff\\u0e00-\\u0e7f\\u1400-\\u167f]")
-- This regex can't differentiate between Japanese and Chinese, so has a good chance of returning true for Chinese as well.
containsJapanese : String -> Bool