@@ -1848,7 +1848,7 @@ unittest {
1848
1848
import configy.Read;
1849
1849
1850
1850
const str1 = ` {
1851
- "registryUrls": [ "http://foo.bar" ],
1851
+ "registryUrls": [ "http://foo.bar\/optional\/escape " ],
1852
1852
"customCachePaths": [ "foo/bar", "foo/foo" ],
1853
1853
1854
1854
"skipRegistry": "all",
@@ -1878,7 +1878,7 @@ unittest {
1878
1878
}` ;
1879
1879
1880
1880
auto c1 = parseConfigString! UserConfiguration(str1, " /dev/null" );
1881
- assert (c1.registryUrls == [ " http://foo.bar" ]);
1881
+ assert (c1.registryUrls == [ " http://foo.bar/optional/escape " ]);
1882
1882
assert (c1.customCachePaths == [ NativePath(" foo/bar" ), NativePath(" foo/foo" ) ]);
1883
1883
assert (c1.skipRegistry == SkipPackageSuppliers.all);
1884
1884
assert (c1.defaultCompiler == " dmd" );
@@ -1901,7 +1901,7 @@ unittest {
1901
1901
1902
1902
auto m1 = c2.merge(c1);
1903
1903
// c1 takes priority, so its registryUrls is first
1904
- assert (m1.registryUrls == [ " http://foo.bar" , " http://bar.foo" ]);
1904
+ assert (m1.registryUrls == [ " http://foo.bar/optional/escape " , " http://bar.foo" ]);
1905
1905
// Same with CCP
1906
1906
assert (m1.customCachePaths == [
1907
1907
NativePath(" foo/bar" ), NativePath(" foo/foo" ),
@@ -1916,7 +1916,7 @@ unittest {
1916
1916
assert (m1.defaultEnvironments == c1.defaultEnvironments);
1917
1917
1918
1918
auto m2 = c1.merge(c2);
1919
- assert (m2.registryUrls == [ " http://bar.foo" , " http://foo.bar" ]);
1919
+ assert (m2.registryUrls == [ " http://bar.foo" , " http://foo.bar/optional/escape " ]);
1920
1920
assert (m2.customCachePaths == [
1921
1921
NativePath(" bar/foo" ), NativePath(" bar/bar" ),
1922
1922
NativePath(" foo/bar" ), NativePath(" foo/foo" ),
0 commit comments