# HG changeset patch # User Ruslan Ermilov # Date 1455183124 -10800 # Node ID 68b647a96448492a85a92ea468012755fe488d7b # Parent f2d83fc969b1c1cc43dbadefed17e2488c4eb994 Documented that "map" does a caseless string comparison. diff --git a/xml/en/docs/http/ngx_http_map_module.xml b/xml/en/docs/http/ngx_http_map_module.xml --- a/xml/en/docs/http/ngx_http_map_module.xml +++ b/xml/en/docs/http/ngx_http_map_module.xml @@ -10,7 +10,7 @@ + rev="3">
@@ -86,6 +86,10 @@ Source values are specified as strings o +Strings are matched ignoring the case. + + + A regular expression should either start from the “~” symbol for a case-sensitive matching, or from the “~*” symbols (1.0.4) for case-insensitive matching. diff --git a/xml/ru/docs/http/ngx_http_map_module.xml b/xml/ru/docs/http/ngx_http_map_module.xml --- a/xml/ru/docs/http/ngx_http_map_module.xml +++ b/xml/ru/docs/http/ngx_http_map_module.xml @@ -10,7 +10,7 @@ + rev="3">
@@ -87,6 +87,10 @@ map $http_user_agent $mobile { +Строки проверяются без учёта регистра. + + + Перед регулярным выражением ставится символ “~”, если при сравнении следует учитывать регистр символов, либо символы “~*” (1.0.4), если регистр символов учитывать не нужно.