mirror of https://github.com/yandex/gixy
More test cases for if parsing
parent
b93a60d09c
commit
285e20fe5e
|
@ -232,6 +232,9 @@ if ($host ~* (lori|rage2)\.yandex\.(ru|ua|com|com\.tr)) {
|
|||
if ($request_filename ~* ^.*?/(\d+_)([^/]+)$) {
|
||||
}
|
||||
|
||||
if ($http_user_agent ~* "^WordPress.*; verifying pingback") {
|
||||
}
|
||||
|
||||
if ($foo = "BAR") { rewrite ^(.*)$ /bar; }
|
||||
'''
|
||||
|
||||
|
@ -262,6 +265,8 @@ if ($foo = "BAR") { rewrite ^(.*)$ /bar; }
|
|||
]],
|
||||
['if', ['$request_filename', '~*', '^.*?/(\d+_)([^/]+)$'], [
|
||||
]],
|
||||
['if', ['$http_user_agent', '~*', '^WordPress.*; verifying pingback'], [
|
||||
]],
|
||||
['if', ['$foo', '=', 'BAR'], [
|
||||
['rewrite', '^(.*)$', '/bar']
|
||||
]]
|
||||
|
|
Loading…
Reference in New Issue