mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-29 14:06:33 +01:00
added unit test for hex code escaping
This commit is contained in:
parent
d63d7dc5f8
commit
21ca434e72
@ -64,4 +64,12 @@ public final class ReplacerUnitTester
|
|||||||
assertEquals(text, Values.CHARS_REPLACER.apply(text, null, Values.PLACEHOLDERS::get));
|
assertEquals(text, Values.CHARS_REPLACER.apply(text, null, Values.PLACEHOLDERS::get));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testCharsReplacerHandlesEscapedHex()
|
||||||
|
{
|
||||||
|
final String text = "\\&xFFFFFFThis should not change.";
|
||||||
|
|
||||||
|
assertEquals(text.substring(1), Values.CHARS_REPLACER.apply(text, null, Values.PLACEHOLDERS::get));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user