mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-17 09:19:38 -06:00
[Fix] Can't parse db name in .env file
Can't parse db name in .env file when trying to bypass the password. Below is the detailed issue link. https://github.com/sqlitebrowser/sqlitebrowser/issues/3081
This commit is contained in:
@@ -9,7 +9,7 @@ bool DotenvFormat::readEnvFile(QIODevice &device, QSettings::SettingsMap &map)
|
||||
|
||||
QString line;
|
||||
|
||||
QRegularExpression keyValueRegex("^\\s*([\\w\\.\\-]+)\\s*=\\s*(.*)\\s*$");
|
||||
QRegularExpression keyValueRegex("^\\s*([\\w\\.\\-\\@]+)\\s*=\\s*(.*)\\s*$");
|
||||
|
||||
while (in.readLineInto(&line)) {
|
||||
QRegularExpressionMatch match = keyValueRegex.match(line);
|
||||
|
||||
Reference in New Issue
Block a user