From 33f9ed2466e960223389da59a423cc697ff615ba Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 14 Dec 2025 14:44:24 +0300 Subject: Chore: cleanup --- helpfuncs.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helpfuncs.go') diff --git a/helpfuncs.go b/helpfuncs.go index edcb7fe..194d68c 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -8,8 +8,18 @@ import ( "os" "path" "strings" + "unicode" ) +func isASCII(s string) bool { + for i := 0; i < len(s); i++ { + if s[i] > unicode.MaxASCII { + return false + } + } + return true +} + func colorText() { text := textView.GetText(false) quoteReplacer := strings.NewReplacer( -- cgit v1.2.3