From c3bb5cdc3c22eee12765fc8cd5ed714e20f504d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Schultz=20Madsen?= Date: Mon, 11 Feb 2019 09:09:59 +0100 Subject: [PATCH] Fixing the regex to only get the number. --- eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs b/eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs index 2ecbf50566..9738913df1 100644 --- a/eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs +++ b/eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs @@ -55,7 +55,7 @@ public static List GetPlugins(IConfiguration configuration) // } var dbNameSection = Regex.Match(connectionString, @"(Database=\w*;)").Groups[0].Value; - var dbPrefix = Regex.Match(connectionString, @"Database=(.*)_").Groups[1].Value; + var dbPrefix = Regex.Match(connectionString, @"Database=(\d*)_").Groups[1].Value; foreach (var plugin in GetAllPlugins()) {