mirror of
https://github.com/huderlem/porymap.git
synced 2026-06-13 03:11:26 -05:00
Prevent capturing '=' in config key
This commit is contained in:
parent
5927f3dd7b
commit
ebb17476a7
|
|
@ -36,7 +36,7 @@ void KeyValueConfigBase::load() {
|
|||
QTextStream in(&file);
|
||||
in.setCodec("UTF-8");
|
||||
QList<QString> configLines;
|
||||
QRegularExpression re("^(?<key>.+)=(?<value>.*)$");
|
||||
QRegularExpression re("^(?<key>[^=]+)=(?<value>.*)$");
|
||||
while (!in.atEnd()) {
|
||||
QString line = in.readLine().trimmed();
|
||||
int commentIndex = line.indexOf("#");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user