changeset 1652:68b647a96448

Documented that "map" does a caseless string comparison.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Feb 2016 12:32:04 +0300
parents f2d83fc969b1
children dad548cf5b5f
files xml/en/docs/http/ngx_http_map_module.xml xml/ru/docs/http/ngx_http_map_module.xml
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_map_module.xml
+++ b/xml/en/docs/http/ngx_http_map_module.xml
@@ -10,7 +10,7 @@
 <module name="Module ngx_http_map_module"
         link="/en/docs/http/ngx_http_map_module.html"
         lang="en"
-        rev="2">
+        rev="3">
 
 <section id="summary">
 
@@ -86,6 +86,10 @@ Source values are specified as strings o
 </para>
 
 <para>
+Strings are matched ignoring the case.
+</para>
+
+<para>
 A regular expression should either start from the “<literal>~</literal>”
 symbol for a case-sensitive matching, or from the “<literal>~*</literal>”
 symbols (1.0.4) for case-insensitive matching.
--- a/xml/ru/docs/http/ngx_http_map_module.xml
+++ b/xml/ru/docs/http/ngx_http_map_module.xml
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_map_module"
         link="/ru/docs/http/ngx_http_map_module.html"
         lang="ru"
-        rev="2">
+        rev="3">
 
 <section id="summary">
 
@@ -87,6 +87,10 @@ map $http_user_agent $mobile {
 </para>
 
 <para>
+Строки проверяются без учёта регистра.
+</para>
+
+<para>
 Перед регулярным выражением ставится символ “<literal>~</literal>”,
 если при сравнении следует учитывать регистр символов, либо символы
 “<literal>~*</literal>” (1.0.4), если регистр символов учитывать не нужно.