From d265baf31f6597d87d338d39df6fc58032aee3f6 Mon Sep 17 00:00:00 2001 From: zzak Date: Wed, 13 Nov 2013 00:05:38 +0000 Subject: [PATCH] * doc/regexp.rdoc: [DOC] add note about Bug #4044 as suggested by duerst-san in [ruby-core:43612] [Fixes GH-443] Patched by @rosenfeld https://github.com/ruby/ruby/pull/443 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ doc/regexp.rdoc | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7987fa481..ae72005fd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Nov 13 09:03:40 2013 Zachary Scott + + * doc/regexp.rdoc: [DOC] add note about Bug #4044 as suggested by + duerst-san in [ruby-core:43612] [Fixes GH-443] Patched by @rosenfeld + https://github.com/ruby/ruby/pull/443 + Tue Nov 12 10:15:14 2013 Eric Hodel * test/rubygems/insure_session.rb: Remove unused test file. diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index 59f1c45651..26779acb1a 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -121,7 +121,9 @@ The following metacharacters also behave like character classes: * /./ - Any character except a newline. * /./m - Any character (the +m+ modifier enables multiline mode) * /\w/ - A word character ([a-zA-Z0-9_]) -* /\W/ - A non-word character ([^a-zA-Z0-9_]) +* /\W/ - A non-word character ([^a-zA-Z0-9_]). + Please take a look at {Bug #4044}[https://bugs.ruby-lang.org/issues/4044] if + using /\W/ with the /i modifier. * /\d/ - A digit character ([0-9]) * /\D/ - A non-digit character ([^0-9]) * /\h/ - A hexdigit character ([0-9a-fA-F])