diff --git a/CMakeLists.txt b/CMakeLists.txt index cff9bb0..10cd23e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.5.1 + VERSION 0.5.2 LANGUAGES CXX ) diff --git a/src/parse.cpp b/src/parse.cpp index 356b1a6..a75f14f 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -40,7 +40,7 @@ void unescape_html(string &str) str = ""; // Used to convert int to utf-8 char std::wstring_convert, char16_t> u8c; - std::regex reentity("&#(\\d{4});"); + std::regex reentity("&#(\\d{2,4});"); std::smatch match; while (std::regex_search(html, match, reentity))