Revision: 19613
http://sourceforge.net/p/gate/code/19613
Author: markagreenwood
Date: 2016-10-02 10:16:15 +0000 (Sun, 02 Oct 2016)
Log Message:
-----------
fixed a typo in the roman numerals regex which meant X was missed out
Modified Paths:
--------------
gate/trunk/plugins/Tagger_Numbers/src/gate/creole/numbers/RomanNumeralsTagger.java
Modified:
gate/trunk/plugins/Tagger_Numbers/src/gate/creole/numbers/RomanNumeralsTagger.java
===================================================================
---
gate/trunk/plugins/Tagger_Numbers/src/gate/creole/numbers/RomanNumeralsTagger.java
2016-10-02 01:22:37 UTC (rev 19612)
+++
gate/trunk/plugins/Tagger_Numbers/src/gate/creole/numbers/RomanNumeralsTagger.java
2016-10-02 10:16:15 UTC (rev 19613)
@@ -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