Skip to content

Commit c3bb5cd

Browse files
committed
Fixing the regex to only get the number.
1 parent 805cd91 commit c3bb5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static List<IEformPlugin> GetPlugins(IConfiguration configuration)
5555
// }
5656

5757
var dbNameSection = Regex.Match(connectionString, @"(Database=\w*;)").Groups[0].Value;
58-
var dbPrefix = Regex.Match(connectionString, @"Database=(.*)_").Groups[1].Value;
58+
var dbPrefix = Regex.Match(connectionString, @"Database=(\d*)_").Groups[1].Value;
5959

6060
foreach (var plugin in GetAllPlugins())
6161
{

0 commit comments

Comments
 (0)