[
https://issues.apache.org/jira/browse/NET-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved NET-526.
----------------------
Resolution: Fixed
Fix Version/s: 3.4
URL: http://svn.apache.org/r1570207
Log:
NET-526 Avoid greedy matches within a regex
Modified:
commons/proper/net/trunk/src/changes/changes.xml
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
> Avoid greedy matches within a regex
> -----------------------------------
>
> Key: NET-526
> URL: https://issues.apache.org/jira/browse/NET-526
> Project: Commons Net
> Issue Type: Improvement
> Reporter: Sebb
> Fix For: 3.4
>
>
> Some of the FTP directory parsers use greedy qualifiers - ".*" - within a
> regex.
> This can be expensive, as it may require backtracking.
> It's usually better to use a reluctant qualifier - e.g. ".*?" - except at the
> end of an RE.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)