Skip to content

Commit

Permalink
Fixing the regex to only get the number.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Feb 11, 2019
1 parent 805cd91 commit c3bb5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static List<IEformPlugin> 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())
{
Expand Down

0 comments on commit c3bb5cd

Please sign in to comment.