Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad2d41dde0 | ||
|
|
4a91406d4f | ||
|
|
f9216f7bc9 |
+12
-2
@@ -52,7 +52,7 @@ namespace BlubbFish.Utils
|
||||
Dictionary<String, String> sub = new Dictionary<String, String>();
|
||||
String cap = "";
|
||||
foreach (String line in buf) {
|
||||
Match match = Regex.Match(line, @"^\[[a-zA-Z0-9\-_ ]+\]\w*$", RegexOptions.IgnoreCase);
|
||||
Match match = Regex.Match(line, @"^\[[a-zA-ZäöüÄÖÜ0-9\-_ ]+\]\w*$", RegexOptions.IgnoreCase);
|
||||
if (match.Success) {
|
||||
if (sub.Count != 0 && cap != "") {
|
||||
this.cont.Add(cap, sub);
|
||||
@@ -74,7 +74,17 @@ namespace BlubbFish.Utils
|
||||
|
||||
public List<String> GetSections()
|
||||
{
|
||||
return this.cont.Keys.ToList<String>();
|
||||
return this.cont.Keys.ToList();
|
||||
}
|
||||
|
||||
public Dictionary<String, String> GetSection(String section) {
|
||||
if(this.cont.Keys.Contains(section)) {
|
||||
return this.cont[section];
|
||||
}
|
||||
if(this.cont.Keys.Contains("["+section+"]")) {
|
||||
return this.cont["[" + section + "]"];
|
||||
}
|
||||
return new Dictionary<String, String>();
|
||||
}
|
||||
|
||||
public String GetValue(String section, String key)
|
||||
|
||||
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Utils")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014 - 24.04.2017")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014 - 24.09.2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.4.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.4.1")]
|
||||
[assembly: AssemblyVersion("1.0.5.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.5.1")]
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user