More test cases for if parsing

pull/66/head
Andrew Krasichkov 2017-07-06 19:43:48 +03:00
parent b93a60d09c
commit 285e20fe5e
1 changed files with 5 additions and 0 deletions

View File

@ -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']
]]