mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 14:15:47 +00:00
Merge pull request #145 from vonrosen/ARI-4713
Make some urls with whitespace acceptable to JavaScript extractor.
This commit is contained in:
@@ -63,11 +63,11 @@ public class ExtractorJS extends ContentExtractor {
|
||||
private static Logger LOGGER =
|
||||
Logger.getLogger(ExtractorJS.class.getName());
|
||||
|
||||
// finds whitespace- and quote-free strings in Javascript
|
||||
// finds strings in Javascript
|
||||
// (areas between paired ' or " characters, possibly backslash-quoted
|
||||
// on the ends, but not in the middle)
|
||||
protected static final String JAVASCRIPT_STRING_EXTRACTOR =
|
||||
"(\\\\{0,8}+(?:['\"]|u002[27]))([^\\s'\"]{1,"+UURI.MAX_URL_LENGTH+"})(?:\\1)";
|
||||
"(\\\\{0,8}+(?:['\"]|u002[27]))([^'\"]{0,"+UURI.MAX_URL_LENGTH+"})(?:\\1)";
|
||||
|
||||
// GROUPS:
|
||||
// (G1) ' or " with optional leading backslashes
|
||||
|
||||
Reference in New Issue
Block a user