Accept (_) escape for / in environment controller

Fixes gh-264
This commit is contained in:
Dave Syer
2015-11-12 15:57:38 +00:00
parent 15b5ca804e
commit c72e3857cd
3 changed files with 13 additions and 0 deletions

View File

@@ -78,4 +78,11 @@ public class ResourceControllerTests {
assertEquals("foo: ${foo}", resource);
}
@Test
public void labelWithSlash() throws Exception {
this.environmentRepository.setSearchLocations("classpath:/test");
String resource = this.controller.resolve("foo", "bar", "dev(_)spam", "foo.txt");
assertEquals("foo: dev_bar/spam", resource);
}
}

View File

@@ -0,0 +1 @@
foo: dev_bar/spam