valerybokov opened a new pull request, #579: URL: https://github.com/apache/pdfbox/pull/579
The issue is accurate: PDFHighlighter in the examples module passed each search word straight to Pattern.compile, so the words were treated as regular expressions. One detail in the report (https://issues.apache.org/jira/projects/PDFBOX/issues/PDFBOX-6363?filter=allissues): C++ doesn't throw, because it's a valid regex that matches just "C". It does highlight the wrong text, though, and terms like ++ or [abc do throw PatternSyntaxException. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
