# HG changeset patch # User František Kučera # Date 1605354677 -3600 # Node ID 871c05ca71184b2c45136818fd62f6683c5577d3 # Parent bf2240a0471dd5978fcb406078944760882d6034 in-ini: support unquoted empty values diff -r bf2240a0471d -r 871c05ca7118 java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java --- a/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sat Nov 14 02:10:31 2020 +0100 +++ b/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sat Nov 14 12:51:17 2020 +0100 @@ -175,7 +175,7 @@ ENTRY( "\\s*(?[^=\\]]+?[^=\\s\\]]*)(\\[(?[^\\]]+)\\])?\\s*=\\s*\"(?[^']+)\"\\s*((;|#)\\s*(?.*))?", // quoted value → include spaces + might have comment "\\s*(?[^=\\]]+?[^=\\s\\]]*)(\\[(?[^\\]]+)\\])?\\s*=\\s*'(?[^']+)'\\s*((;|#)\\s*(?.*))?", // apostrophed value → include spaces + might have comment - "\\s*(?[^=\\]]+?[^=\\s\\]]*)(\\[(?[^\\]]+)\\])?\\s*=\\s*(?.+)" // unquoted value → strip spaces + no comments + "\\s*(?[^=\\]]+?[^=\\s\\]]*)(\\[(?[^\\]]+)\\])?\\s*=\\s*(?.*)" // unquoted value → strip spaces + no comments ) { @Override public void processLine(LineContext lc, FileContext fc) throws SAXException {