summaryrefslogtreecommitdiff
path: root/helpfuncs.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpfuncs.go')
-rw-r--r--helpfuncs.go10
1 files changed, 10 insertions, 0 deletions
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(