mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-24 16:41:20 -04:00
httpserver: Add not_starts_with condition. (#1687)
* Add not_starts_with condition. This adds the opposite of the starts_with condition, to check if a given string does not start with another string. * Correct white space problems
This commit is contained in:
@@ -32,6 +32,9 @@ func TestConditions(t *testing.T) {
|
||||
{"bab starts_with bb", false},
|
||||
{"bab starts_with ba", true},
|
||||
{"bab starts_with bab", true},
|
||||
{"bab not_starts_with bb", true},
|
||||
{"bab not_starts_with ba", false},
|
||||
{"bab not_starts_with bab", false},
|
||||
{"bab ends_with bb", false},
|
||||
{"bab ends_with bab", true},
|
||||
{"bab ends_with ab", true},
|
||||
|
||||
Reference in New Issue
Block a user