mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-10-31 18:22:27 +01:00
added unit test for hex code escaping
This commit is contained in:
@@ -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));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user