Author: ssmiweve
Date: 2008-08-13 10:20:13 +0200 (Wed, 13 Aug 2008)
New Revision: 6760

Modified:
   
branches/2.17/result-spi/src/main/java/no/sesat/search/result/StringChopper.java
Log:
http://permalink.gmane.org/gmane.comp.java.sesat.kernel.devel/155

Modified: 
branches/2.17/result-spi/src/main/java/no/sesat/search/result/StringChopper.java
===================================================================
--- 
branches/2.17/result-spi/src/main/java/no/sesat/search/result/StringChopper.java
    2008-08-12 10:41:35 UTC (rev 6759)
+++ 
branches/2.17/result-spi/src/main/java/no/sesat/search/result/StringChopper.java
    2008-08-13 08:20:13 UTC (rev 6760)
@@ -1,4 +1,4 @@
-/* Copyright (2005-2007) Schibsted Søk AS
+/* Copyright (2005-2008) Schibsted Søk AS
  * This file is part of SESAT.
  * You can use, redistribute, and/or modify it, under the terms of the SESAT 
License.
  * You should have received a copy of the SESAT License along with this 
program.
@@ -43,7 +43,7 @@
 
     private static final String DEBUG_CHOPSUEY = "Chopped it up to ";
 
-    private static final Pattern openTag = Pattern.compile("<[^<]+>");
+    private static final Pattern openTag = Pattern.compile("<[^\\?!][^<]+>");
     private static final Pattern closeTag = Pattern.compile("</[^<]+>");
     private static final Pattern singleTag = Pattern.compile("<[^<]+/>");
 

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to