mqtt-map auf dem congress
This commit is contained in:
parent
37d3b8c5a8
commit
dcfb0e6272
@ -91,7 +91,7 @@ namespace BlubbFish.Utils {
|
|||||||
Dictionary<String, String> sub = new Dictionary<String, String>();
|
Dictionary<String, String> sub = new Dictionary<String, String>();
|
||||||
String cap = "";
|
String cap = "";
|
||||||
foreach (String line in buf) {
|
foreach (String line in buf) {
|
||||||
Match match = Regex.Match(line, @"^\[[a-zA-ZäöüÄÖÜ0-9\-_ ]+\]\w*$", RegexOptions.IgnoreCase);
|
Match match = Regex.Match(line, @"^\[[a-zA-ZäöüÄÖÜ0-9\-\._/ ]+\]\w*$", RegexOptions.IgnoreCase);
|
||||||
if (match.Success) {
|
if (match.Success) {
|
||||||
if (sub.Count != 0 && cap != "") {
|
if (sub.Count != 0 && cap != "") {
|
||||||
this.inifile.Add(cap, sub);
|
this.inifile.Add(cap, sub);
|
||||||
@ -140,7 +140,7 @@ namespace BlubbFish.Utils {
|
|||||||
if(!key.StartsWith("[")) {
|
if(!key.StartsWith("[")) {
|
||||||
key = "[" + key + "]";
|
key = "[" + key + "]";
|
||||||
}
|
}
|
||||||
if (Regex.Match(key, @"^\[[a-zA-ZäöüÄÖÜ0-9\-_ ]+\]\w*$", RegexOptions.IgnoreCase).Success) {
|
if (Regex.Match(key, @"^\[[a-zA-ZäöüÄÖÜ0-9\-\._/ ]+\]\w*$", RegexOptions.IgnoreCase).Success) {
|
||||||
this.inifile.Add(key, item.Value);
|
this.inifile.Add(key, item.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user