From c9a6cccf109dbffe5550b1bbe25328499d86a491 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 27 Aug 2018 13:30:23 +0900 Subject: [PATCH] don't use STRING_RAW flag --- src/regparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regparse.c b/src/regparse.c index 45fd01b..fcc05cf 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -3205,7 +3205,7 @@ str_node_split_last_char(Node* node, OnigEncoding enc) p = onigenc_get_prev_char_head(enc, sn->s, sn->end); if (p && p > sn->s) { /* can be split. */ rn = node_new_str(p, sn->end); - if ((sn->flag & STRING_RAW) != 0) + if (NODE_STRING_IS_RAW(node)) NODE_STRING_SET_RAW(rn); sn->end = (UChar* )p; -- 2.40.0