Author: sebb
Date: Wed Sep 22 13:16:16 2010
New Revision: 999930

URL: http://svn.apache.org/viewvc?rev=999930&view=rev
Log:
Document regex

Modified:
    
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java

Modified: 
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java
URL: 
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java?rev=999930&r1=999929&r2=999930&view=diff
==============================================================================
--- 
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java
 (original)
+++ 
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java
 Wed Sep 22 13:16:16 2010
@@ -40,9 +40,9 @@ public class NTFTPEntryParser extends Co
      * this is the regular expression used by this parser.
      */
     private static final String REGEX =
-        "(\\S+)\\s+(\\S+)\\s+"
-        + "(?:(<DIR>)|([0-9]+))\\s+"
-        + "(\\S.*)";
+        "(\\S+)\\s+(\\S+)\\s+"          // MM-dd-yy whitespace hh:mma|kk:mm; 
swallow trailing spaces
+        + "(?:(<DIR>)|([0-9]+))\\s+"    // <DIR> or ddddd; swallow trailing 
spaces
+        + "(\\S.*)";                    // First non-space followed by rest of 
line (name)
 
     /**
      * The sole constructor for an NTFTPEntryParser object.


Reply via email to