diff options
Diffstat (limited to 'lib/utils/mu-html-to-text.cc')
| -rw-r--r-- | lib/utils/mu-html-to-text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/mu-html-to-text.cc b/lib/utils/mu-html-to-text.cc index 08f1f4d..69ff232 100644 --- a/lib/utils/mu-html-to-text.cc +++ b/lib/utils/mu-html-to-text.cc @@ -112,7 +112,7 @@ public: * @return true or false */ bool looking_at(std::string_view str) const { - if (pos_ >= html_.size() || pos_ + str.size() >= html_.size()) + if (pos_ >= html_.size() || pos_ + str.size() > html_.size()) return false; else return matches({html_.data()+pos_, str.size()}, str); |
