mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-22 13:47:02 +00:00
Fix ExtractorJSTest for commons-lang3 3.22.0
The webarchive-commons 3.0.6 bump pulls in commons-lang3 3.22.0, whose UnicodeUnescaper no longer throws on malformed \u escapes. Only test the invalid code points ExtractorJS rejects itself.
This commit is contained in:
1 parent
d7a02be00b
commit
b7ce8f9782
1 file changed
+1
-2
@@ -84,8 +84,7 @@ public class ExtractorJSTest extends StringExtractorTestBase {
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@ValueSource(strings = {"\\u{}", "\\u{61", "\\u{xyz}", "\\u{110000}",
|
||||
"\\u{ffffffffffffffff}", "\\u{+61}", "\\u{6_1}"})
|
||||
@ValueSource(strings = {"\\u{110000}", "\\u{ffffffffffffffff}"})
|
||||
void rejectsInvalidCodePointEscapes(String escaped) {
|
||||
assertThrows(IllegalArgumentException.class,
|
||||
() -> ExtractorJS.UNESCAPE_JAVASCRIPT.translate(escaped));
|
||||
|
||||
Reference in new issue
Block a user