Revision: 19614
http://sourceforge.net/p/gate/code/19614
Author: markagreenwood
Date: 2016-10-02 10:33:58 +0000 (Sun, 02 Oct 2016)
Log Message:
-----------
same fix to the roman numbers bit as on the main branch, for some reason i
couldn't merge though so it's a new edit
Modified Paths:
--------------
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java
Modified:
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java
===================================================================
---
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java
2016-10-02 10:16:15 UTC (rev 19613)
+++
gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java
2016-10-02 10:33:58 UTC (rev 19614)
@@ -216,19 +216,19 @@
if(allowLowerCase) {
if(maxTailLength > 0) {
pattern =
- Pattern.compile("\\b((?:[mdclxvi]+)|(?:[MDCLCVI]+))(\\w{0,"
+ Pattern.compile("\\b((?:[mdclxvi]+)|(?:[MDCLXVI]+))(\\w{0,"
+ maxTailLength + "})\\b");
} else {
- pattern = Pattern.compile("\\b((?:[mdclxvi]+)|(?:[MDCLCVI]+))\\b");
+ pattern = Pattern.compile("\\b((?:[mdclxvi]+)|(?:[MDCLXVI]+))\\b");
}
} else {
// no lower case option
if(maxTailLength > 0) {
pattern =
- Pattern.compile("\\b([MDCLCVI]+)(\\w{0," + maxTailLength
+ Pattern.compile("\\b([MDCLXVI]+)(\\w{0," + maxTailLength
+ "})\\b");
} else {
- pattern = Pattern.compile("\\b([MDCLCVI]+)\\b");
+ pattern = Pattern.compile("\\b([MDCLXVI]+)\\b");
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs