# HG changeset patch # User František Kučera # Date 1606151607 -3600 # Node ID ccd0677746ce168e3c7eb26ed44cd1b9fca78aad # Parent fc8f9aab211df1f21d65ad6cc45dabb16ec9b480 trim whitespace characters after plain (unquoted) values diff -r fc8f9aab211d -r ccd0677746ce src/lib/INIReader.cpp --- a/src/lib/INIReader.cpp Mon Nov 23 17:56:16 2020 +0100 +++ b/src/lib/INIReader.cpp Mon Nov 23 18:13:27 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;