File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,9 @@ std::unique_ptr<IRegex> ReplaceNormalizer::create_regex_(
102
102
}
103
103
104
104
std::string ReplaceNormalizer::normalize (const std::string& input) const {
105
- if (!regex_)
105
+ if (!regex_) {
106
106
return input;
107
+ }
107
108
108
109
std::string result = input;
109
110
auto matches = regex_->find_all (result);
Original file line number Diff line number Diff line change @@ -151,8 +151,9 @@ std::unique_ptr<IRegex> RegexPreTokenizer::create_regex_(
151
151
152
152
std::vector<std::string> RegexPreTokenizer::pre_tokenize (
153
153
const std::string& input) const {
154
- if (!regex_)
154
+ if (!regex_) {
155
155
return {};
156
+ }
156
157
157
158
std::vector<std::string> results;
158
159
auto matches = regex_->find_all (input);
You can’t perform that action at this time.
0 commit comments