From: K.Kosako Date: Wed, 12 Sep 2018 01:45:32 +0000 (+0900) Subject: refactoring X-Git-Tag: v6.9.1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cc8897f728d8cf5649db5fac11ce1e0693340c7;p=onig refactoring --- diff --git a/src/regcomp.c b/src/regcomp.c index c0fd891..ee534ed 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -2520,10 +2520,8 @@ get_head_value_node(Node* node, int exact, regex_t* reg) if (sn->end <= sn->s) break; - if (exact != 0 && - !NODE_STRING_IS_RAW(node) && IS_IGNORECASE(reg->options)) { - } - else { + if (exact == 0 || + ! IS_IGNORECASE(reg->options) || NODE_STRING_IS_RAW(node)) { n = node; } }