From f8678aba8332338c4c00c9819ebdc8f8fb8b0c40 Mon Sep 17 00:00:00 2001 From: Ludmil Simeonov Date: Tue, 23 Jul 2024 15:55:51 +0300 Subject: [PATCH] fix: remove not needed unicode checks --- parse.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/parse.go b/parse.go index 502dd8c..fc6f471 100644 --- a/parse.go +++ b/parse.go @@ -891,8 +891,6 @@ func isName(r rune) bool { return string(r) != ":" && string(r) != "/" && (unicode.Is(first, r) || unicode.Is(second, r) || - unicode.Is(cyrillic, r) || - unicode.Is(greek, r) || string(r) == "*") } @@ -1241,19 +1239,3 @@ var second = &unicode.RangeTable{ {0x30FC, 0x30FE, 1}, }, } - -var cyrillic = &unicode.RangeTable{ - R16: []unicode.Range16{ - {Lo: 0x0400, Hi: 0x04FF, Stride: 1}, // Cyrillic - {Lo: 0x0500, Hi: 0x052F, Stride: 1}, // Cyrillic Supplement - {Lo: 0x2DE0, Hi: 0x2DFF, Stride: 1}, // Cyrillic Extended-A - {Lo: 0xA640, Hi: 0xA69F, Stride: 1}, // Cyrillic Extended-B - }, -} - -var greek = &unicode.RangeTable{ - R16: []unicode.Range16{ - {Lo: 0x0370, Hi: 0x03FF, Stride: 1}, // Greek and Coptic - {Lo: 0x1F00, Hi: 0x1FFF, Stride: 1}, // Greek Extended - }, -}