1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Fixed the pattern issue.

This commit is contained in:
Anna Dushistova 2011-02-22 22:22:34 +00:00
parent a06f745f24
commit 9b6192565a

View file

@ -243,8 +243,9 @@ public class ScpFileAttr {
}
mTime = parseDateTime(dateField);
/* The rest of the entry is name ( and may be symlink ) */
String[] namesplit = Pattern.compile(
dateField.replaceAll(" ", "\\s+") + "\\s").split(lsString); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
dateField.replaceAll(" ", "\\\\s+") + "\\s").split(lsString); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
if (namesplit.length != 2)
return;
name = namesplit[1];