summaryrefslogtreecommitdiff
path: root/elm/Lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-10 10:27:53 +0100
committerYorhel <git@yorhel.nl>2021-01-10 10:27:53 +0100
commit2238b36352fea1206e73d102c4ff1905c4c9ab70 (patch)
tree65f5a0e33c85a3f53ce85bda96287137a3ea11fe /elm/Lib
parente991e259e86d863ee8e5e4e73cd4215cab48af4f (diff)
ReleaseEdit: Don't warn about Chinese release titles containing kanji
Diffstat (limited to 'elm/Lib')
-rw-r--r--elm/Lib/Util.elm1
1 files changed, 1 insertions, 0 deletions
diff --git a/elm/Lib/Util.elm b/elm/Lib/Util.elm
index 72a0828d..ba0a8a54 100644
--- a/elm/Lib/Util.elm
+++ b/elm/Lib/Util.elm
@@ -76,6 +76,7 @@ jap_ = Maybe.withDefault Regex.never (Regex.fromString "[\\u3000-\\u9fff\\uff00-
nonlatin_ : Regex.Regex
nonlatin_ = Maybe.withDefault Regex.never (Regex.fromString "[\\u3000-\\u9fff\\uff00-\\uff9f\\u0400-\\u04ff\\u1100-\\u11ff\\uac00-\\ud7af]")
+-- This regex can't differentiate between Japanese and Chinese, so has a good chance of returning true for Chinese as well.
containsJapanese : String -> Bool
containsJapanese = Regex.contains jap_