[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:
Sitlos
2022-07-01 16:46:44 +08:00
committed by GitHub
parent bb6f633560
commit 302a5fe0db

View File

@@ -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);