Issue #1482: enable PostgreSQL and SQLite libraries by unifying the number of groups in the executed regular expression

This commit is contained in:
Ansgar Becker
2025-03-19 17:14:55 +01:00
parent 3c0fa72b12
commit 0030ac1532

View File

@ -2035,14 +2035,14 @@ begin
rx.Expression := IfThen(AppSettings.ReadBool(asAllProviders), '^', '^(MSOLEDBSQL|SQLOLEDB)'); rx.Expression := IfThen(AppSettings.ReadBool(asAllProviders), '^', '^(MSOLEDBSQL|SQLOLEDB)');
ngPgSQL: ngPgSQL:
{$IfDef LINUX} {$IfDef LINUX}
rx.Expression := '^\s*libpq[^=]+=>\s*(\S+)$'; rx.Expression := '^\s*(libpq)[^=]+=>\s*(\S+)$';
{$EndIf} {$EndIf}
{$IfDef WINDOWS} {$IfDef WINDOWS}
rx.Expression := '^libpq.*\.' + GetDynLibExtension; rx.Expression := '^libpq.*\.' + GetDynLibExtension;
{$EndIf} {$EndIf}
ngSQLite: begin ngSQLite: begin
{$IfDef LINUX} {$IfDef LINUX}
rx.Expression := '^\s*libsqlite3[^=]+=>\s*(\S+)$'; rx.Expression := '^\s*(libsqlite3)[^=]+=>\s*(\S+)$';
{$EndIf} {$EndIf}
{$IfDef WINDOWS} {$IfDef WINDOWS}
if NetType = ntSQLite then if NetType = ntSQLite then