# HG changeset patch # User František Kučera # Date 1606151583 -3600 # Node ID f689cbfc6b44b3d5a5f3092532aaa8a46c71ec30 # Parent be61125d8ed1385893cc8063656e5284d5da0976 trim whitespace characters after plain (unquoted) values diff -r be61125d8ed1 -r f689cbfc6b44 src/lib/INIReader.cpp --- a/src/lib/INIReader.cpp Mon Nov 23 17:56:55 2020 +0100 +++ b/src/lib/INIReader.cpp Mon Nov 23 18:13:03 2020 +0100 @@ -42,7 +42,7 @@ std::regex sectionPattrern("\\s*\\[\\s*([^\\]]+)\\s*\\]\\s*(\\[\\s*([^\\]]+)\\s*\\])?\\s*((;|#)\\s*(.*))?"); std::regex entryQuotesPattrern(/***/"\\s*(([^=\\]]+?[^=\\s\\]]*)(\\[([^\\]]+)\\])?)\\s*=\\s*\"([^']+)\"\\s*((;|#)\\s*(.*))?"); std::regex entryApostrophesPattrern("\\s*(([^=\\]]+?[^=\\s\\]]*)(\\[([^\\]]+)\\])?)\\s*=\\s*'([^']+)'\\s*((;|#)\\s*(.*))?"); - std::regex entryPlainPattrern("\\s*(([^=\\]]+?[^=\\s\\]]*)(\\[([^\\]]+)\\])?)\\s*=\\s*(.*)"); + std::regex entryPlainPattrern("\\s*(([^=\\]]+?[^=\\s\\]]*)(\\[([^\\]]+)\\])?)\\s*=\\s*(.+?)\\s*"); std::smatch match; bool inSection = false;