SOLR-2819: Improved speed of parsing hex entities in HTMLStripCharFilter

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1208032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2011-11-29 19:15:54 +00:00
parent afc71a72a6
commit 3ed5106920
2 changed files with 5 additions and 2 deletions

View File

@ -124,8 +124,8 @@ public class HTMLStripCharFilter extends BaseCharFilter {
private boolean isHex(int ch) {
return (ch>='0' && ch<='9') ||
(ch>='A' && ch<='Z') ||
(ch>='a' && ch<='z');
(ch>='A' && ch<='F') ||
(ch>='a' && ch<='f');
}
private boolean isAlpha(int ch) {

View File

@ -402,6 +402,9 @@ Bug Fixes
----------------------
* SOLR-2912: Fixed File descriptor leak in ShowFileRequestHandler (Michael Ryan, shalin)
* SOLR-2819: Improved speed of parsing hex entities in HTMLStripCharFilter
(Bernhard Berger, hossman)
================== 3.5.0 ==================
New Features