diff options
Diffstat (limited to 'plugins/websockets/wildcard.go')
-rw-r--r-- | plugins/websockets/wildcard.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/websockets/wildcard.go b/plugins/websockets/wildcard.go deleted file mode 100644 index 2f1c6601..00000000 --- a/plugins/websockets/wildcard.go +++ /dev/null @@ -1,12 +0,0 @@ -package websockets - -import "strings" - -type wildcard struct { - prefix string - suffix string -} - -func (w wildcard) match(s string) bool { - return len(s) >= len(w.prefix)+len(w.suffix) && strings.HasPrefix(s, w.prefix) && strings.HasSuffix(s, w.suffix) -} |