Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Gemstone/Configuration/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,11 @@ public static void UpdateInstance(Settings settings)
Instance = settings;
}

private const string INIKeyValuePairPattern = @";?\s*(?<key>\w+)\s*=.*";
// Anchored at the start of the line so a description comment that merely *contains* a "word="
// sequence (e.g. "...is set to Enabled=false in the database...") is not misinterpreted as a
// key/value pair. Without the leading '^', Regex.Match scans the whole line and matches the
// embedded "Enabled=false", which causes the real description above the setting to be dropped.
private const string INIKeyValuePairPattern = @"^;?\s*(?<key>\w+)\s*=.*";
private static readonly Regex s_iniKeyValuePair;

static Settings()
Expand Down
Loading