diff --git a/TODO.md b/TODO.md index 94e1a64..70b2017 100644 --- a/TODO.md +++ b/TODO.md @@ -14,3 +14,4 @@ - Case insensitive properties and sections - Escape characters - Support multi-line values with backslash + - Example diff --git a/source/mirage/java.d b/source/mirage/java.d index ef6b897..96f97aa 100644 --- a/source/mirage/java.d +++ b/source/mirage/java.d @@ -46,6 +46,9 @@ ConfigDictionary parseJavaProperties(const string properties) { return new JavaPropertiesFactory().parseConfig(properties); } +/// ditto +alias parseJavaConfig = parseJavaProperties; + /** * Load a Java properties file from disk. * @@ -57,6 +60,9 @@ ConfigDictionary loadJavaProperties(const string filePath) { return new JavaPropertiesFactory().loadFile(filePath); } +/// ditto +alias loadJavaConfig = loadJavaProperties; + version (unittest) { import std.exception : assertThrown; import std.process : environment; @@ -108,7 +114,7 @@ version (unittest) { @("Values and keys are trimmed") unittest { - auto config = parseJavaProperties(" + auto config = parseJavaConfig(" one = money ");