From: cmzmasek Date: Sun, 13 Apr 2014 03:55:57 +0000 (+0000) Subject: in progress X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9c40cd3d1b7ed7c39c84deeec45490d4615fb792;p=jalview.git in progress --- diff --git a/forester/java/src/org/forester/io/parsers/util/ParserUtils.java b/forester/java/src/org/forester/io/parsers/util/ParserUtils.java index ef37f98..b37dbeb 100644 --- a/forester/java/src/org/forester/io/parsers/util/ParserUtils.java +++ b/forester/java/src/org/forester/io/parsers/util/ParserUtils.java @@ -69,7 +69,7 @@ public final class ParserUtils { final public static Pattern TAXOMONY_SN_PATTERN_STRAIN_2 = Pattern .compile( "\\b([A-Z][a-z]{2,30}[_ ][a-z]{3,30}[_ ]\\((?:str|subsp|var)[a-z]{0,5}\\.?[_ ]\\S{1,60}\\))(?:\\b|_)?" ); final public static Pattern TAXOMONY_SN_PATTERN_SP = Pattern - .compile( "\\b([A-Z][a-z]{2,30}[_ ]sp\\.)(?:\\b|_)?" ); + .compile( "\\b([A-Z][a-z]{2,30}[_ ]sp\\.?)(?:\\b|_)?" ); final public static Pattern TAXOMONY_SN_PATTERN_GENUS = Pattern.compile( "([A-Z][a-z]{2,30})" ); final private static Pattern TAXOMONY_CODE_PATTERN_PFS = Pattern.compile( "(?:\\b|_)[A-Z0-9]{4,}_(" diff --git a/forester/java/src/org/forester/test/Test.java b/forester/java/src/org/forester/test/Test.java index c89be53..78fe31b 100644 --- a/forester/java/src/org/forester/test/Test.java +++ b/forester/java/src/org/forester/test/Test.java @@ -4286,6 +4286,11 @@ public final class Test { return false; + } if ( !ParserUtils.extractScientificNameFromNodeName( "Macrocera sp" ) + .equals( "Macrocera sp" ) ) { + + + return false; } } catch ( final Exception e ) {