stop supporting prefix matches.

This commit is contained in:
fiatjaf
2023-08-05 10:12:57 -03:00
parent 35faff858a
commit 017816e3dc
2 changed files with 4 additions and 13 deletions

View File

@@ -28,15 +28,6 @@ func similar[E constraints.Ordered](as, bs []E) bool {
return true
}
func containsPrefixOf(haystack []string, needle string) bool {
for _, hay := range haystack {
if strings.HasPrefix(needle, hay) {
return true
}
}
return false
}
// Escaping strings for JSON encoding according to RFC8259.
// Also encloses result in quotation marks "".
func escapeString(dst []byte, s string) []byte {