mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Options ssi_extensions, cgi_extensions became cgi_pattern, ssi_pattern
This commit is contained in:
1 parent
01c5ee0973
commit
ed70793670
4 files changed
+115
-109
No files matched your search
@@ -8,6 +8,12 @@ int main(void) {
|
||||
assert(match_prefix("/*", 2, "/a/b/c") == 2);
|
||||
assert(match_prefix("*/*", 3, "/a/b/c") == 2);
|
||||
assert(match_prefix("**/", 3, "/a/b/c") == 5);
|
||||
assert(match_prefix("**.foo|**.bar", 13, "a.bar") == 5);
|
||||
assert(match_prefix("a|b|cd", 6, "cdef") == 2);
|
||||
assert(match_prefix("a|b|c?", 6, "cdef") == 2);
|
||||
assert(match_prefix("a|?|cd", 6, "cdef") == 1);
|
||||
assert(match_prefix("/a/**.cgi", 9, "/foo/bar/x.cgi") == 0);
|
||||
assert(match_prefix("/a/**.cgi", 9, "/a/bar/x.cgi") == 12);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user