Changeset 2405

Show
Ignore:
Timestamp:
08/13/08 12:01:44 (3 months ago)
Author:
mwlinnem
Message:

Made it so you can have whitespace before "undirected" or "directed".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/converter/edu.iu.nwb.converter.edgelist/src/edu/iu/nwb/converter/edgelist/EdgeListValidatorFactory.java

    r1978 r2405  
    261261                                    
    262262                                   // When first line matches "directed", graph is directed 
    263                                    if (currentLine == 1 && line.matches("^directed\\s*$")) { 
     263                                   if (currentLine == 1 && line.matches("^\\s*directed\\s*$")) { 
    264264                                           this.isUndirected = false; 
    265265                                           line = reader.readLine(); 
     
    267267                                   } 
    268268                                   // Can also specify "undirected" for undirected graph 
    269                                    if (currentLine == 1 && line.matches("^undirected\\s*$")) { 
     269                                   if (currentLine == 1 && line.matches("^\\s*undirected\\s*$")) { 
    270270                                           this.isUndirected = true; 
    271271                                           line = reader.readLine();