Hi,

 

I can run the following test without exception but it doesn't yield the
expected result. Also I can find no information that prefix and or suffix
must not be empty.

 

@Test
public void testNoPrefixAndSuffix() {
    final Map<String, String> map = new HashMap<>();
    map.put("name", "commons");
    assertEqualsCharSeq("Hi commons!", StringSubstitutor.replace("Hi name!",
map, "", ""));
}

 

Is that a bug?

 

Cheers

Thomas

 

Reply via email to