mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 06:55:23 +02:00
Fixed the pattern issue.
This commit is contained in:
parent
a06f745f24
commit
9b6192565a
1 changed files with 2 additions and 1 deletions
|
@ -243,8 +243,9 @@ public class ScpFileAttr {
|
||||||
}
|
}
|
||||||
mTime = parseDateTime(dateField);
|
mTime = parseDateTime(dateField);
|
||||||
/* The rest of the entry is name ( and may be symlink ) */
|
/* The rest of the entry is name ( and may be symlink ) */
|
||||||
|
|
||||||
String[] namesplit = Pattern.compile(
|
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)
|
if (namesplit.length != 2)
|
||||||
return;
|
return;
|
||||||
name = namesplit[1];
|
name = namesplit[1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue