Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zsokami committed Nov 18, 2024
1 parent 176b0d8 commit 3b858b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config/regmatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RegexWrapper {
const jp::Regex &reg() {
if (!_reg) {
_reg.emplace();
_reg->setPattern(pattern).addModifier("m").addPcre2Option(PCRE2_UTF|PCRE2_ALT_BSUX).compile();
_reg->setPattern(_pattern).addModifier("m").addPcre2Option(PCRE2_UTF|PCRE2_ALT_BSUX).compile();
}
return *_reg;
};
Expand All @@ -26,19 +26,19 @@ class RegexWrapper {
const jp::Regex &reg_non_multiline() {
if (!_reg_non_multiline) {
_reg_non_multiline.emplace();
_reg_non_multiline->setPattern(pattern).addPcre2Option(PCRE2_UTF|PCRE2_ALT_BSUX).compile();
_reg_non_multiline->setPattern(_pattern).addPcre2Option(PCRE2_UTF|PCRE2_ALT_BSUX).compile();
}
return *_reg_non_multiline;
};
const jp::Regex &reg_full_match() {
if (!_reg_full_match) {
_reg_full_match.emplace();
_reg_full_match->setPattern(pattern).addModifier("m").addPcre2Option(PCRE2_ANCHORED|PCRE2_ENDANCHORED|PCRE2_UTF).compile();
_reg_full_match->setPattern(_pattern).addModifier("m").addPcre2Option(PCRE2_ANCHORED|PCRE2_ENDANCHORED|PCRE2_UTF).compile();
}
return *_reg_full_match;
};
bool empty() const {
return pattern.empty();
return _pattern.empty();
}
};

Expand Down

0 comments on commit 3b858b0

Please sign in to comment.