Fixed problem with dictinary

pull/93/head
yhirose 4 years ago
parent e7d05e4ce6
commit 1b19b98cf5
  1. 2
      peglib.h

@ -433,7 +433,7 @@ public:
{
auto done = false;
size_t len = 1;
while (!done) {
while (!done && len <= text_len) {
std::string s(text, len);
auto it = dic_.find(s);
if (it == dic_.end()) {

Loading…
Cancel
Save