summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-01 14:20:59 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-01 14:20:59 +0000
commit4c897fdde1fe20918a6577765b77c7d091a5ee98 (patch)
treeaf93244411448731bc0c90b5665ab4bc2b5ec39a /re.c
parentab70e53ac3b5102d4ecbe8f38d4f76afad29d37d (diff)
* re.c (unescape_nonascii): \P{FOO} is also Unicode regexp. [ruby-core:30540]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/re.c b/re.c
index e272146..909e44d 100644
--- a/re.c
+++ b/re.c
@@ -2197,6 +2197,7 @@ unescape_nonascii(const char *p, const char *end, rb_encoding *enc,
}
case 'p': /* \p{Hiragana} */
+ case 'P':
if (!*encp) {
*has_property = 1;
}