diff --git a/NEWS b/NEWS index 5dbdbcaf5d..69665cde26 100644 --- a/NEWS +++ b/NEWS @@ -266,6 +266,11 @@ New Functionality by whitespace. So for example "/foo|(+i bar)/" will match "BaR", but not "FoO". + For both ways of specifying case-insensitivity, characters enclosed in + double quotes maintain their case-sensitivity. So for example /"foo"/i + will not match "Foo", but it will match "foo". + + Changed Functionality --------------------- diff --git a/doc/script-reference/types.rst b/doc/script-reference/types.rst index d24ce09b8c..36ed0f5bfa 100644 --- a/doc/script-reference/types.rst +++ b/doc/script-reference/types.rst @@ -260,6 +260,10 @@ Here is a more detailed description of each type: trailing whitespace after the ``+i`` designator. So, for example, ``/foo|(+i bar)/`` will match "foo" and "BaR", but *not* "Foo". + For both ways of specifying case-insensitivity, characters enclosed + in double quotes maintain their case-sensitivity. So for example + /"foo"/i will not match "Foo", but it will match "foo". + .. bro:type:: port A type representing transport-level port numbers (besides TCP and