diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-28 09:57:47 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-28 09:57:47 +0000 |
commit | ee09f19fdbf047a31ec1c85e6f53ea4a67ded48c (patch) | |
tree | 11333e1be6057ca1395d6e10a87e5e090a84e1da /regexec.c | |
parent | 809615987141a9faab189b3b9b74b0f9bd8a2508 (diff) |
* regcomp.c (optimize_node_left, set_optimize_info_from_tree): right
handling for look behind anchor.
* regexec.c (onig_search): ditto.
[Backport #8076]
this patch is derived from Onigmo base tree.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@39983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3560,7 +3560,9 @@ onig_search(regex_t* reg, const UChar* str, const UChar* end, } } else if ((reg->anchor & ANCHOR_ANYCHAR_STAR_ML)) { - goto begin_position; + if (!(reg->anchor & ANCHOR_LOOK_BEHIND)) { + goto begin_position; + } } } else if (str == end) { /* empty string */ |