Revision: 19745
http://sourceforge.net/p/gate/code/19745
Author: ian_roberts
Date: 2016-11-17 15:48:45 +0000 (Thu, 17 Nov 2016)
Log Message:
-----------
Use posessive quantifiers to avoid pathological backtracking when a document
has long sequences of consecutive blank lines.
Modified Paths:
--------------
gate/trunk/plugins/ANNIE/resources/regex-splitter/external-split-patterns.txt
Modified:
gate/trunk/plugins/ANNIE/resources/regex-splitter/external-split-patterns.txt
===================================================================
---
gate/trunk/plugins/ANNIE/resources/regex-splitter/external-split-patterns.txt
2016-11-17 02:22:50 UTC (rev 19744)
+++
gate/trunk/plugins/ANNIE/resources/regex-splitter/external-split-patterns.txt
2016-11-17 15:48:45 UTC (rev 19745)
@@ -6,8 +6,8 @@
// Lines starting with // are comments; empty lines are ignored
//more than 2 new lines
-(?:[\u00A0\u2007\u202F\p{javaWhitespace}&&[^\n\r]])*(\n\r|\r\n|\n|\r)(?:(?:[\u00A0\u2007\u202F\p{javaWhitespace}&&[^\n\r]])*\1)+
+(?:[\u00A0\u2007\u202F\p{javaWhitespace}&&[^\n\r]])*+(\n\r|\r\n|\n|\r)(?:(?:[\u00A0\u2007\u202F\p{javaWhitespace}&&[^\n\r]])*+\1)++
//the end of the document is also an external split, so that there is no
//orphaned text
-\s*\z
+\s*+\z
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs