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)');
ngPgSQL:
{$IfDef LINUX}
rx.Expression := '^\s*libpq[^=]+=>\s*(\S+)$';
rx.Expression := '^\s*(libpq)[^=]+=>\s*(\S+)$';
{$EndIf}
{$IfDef WINDOWS}
rx.Expression := '^libpq.*\.' + GetDynLibExtension;
{$EndIf}
ngSQLite: begin
{$IfDef LINUX}
rx.Expression := '^\s*libsqlite3[^=]+=>\s*(\S+)$';
rx.Expression := '^\s*(libsqlite3)[^=]+=>\s*(\S+)$';
{$EndIf}
{$IfDef WINDOWS}
if NetType = ntSQLite then