mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 243 forks source link

REX_LISTUNIX issue when owner is blank #239

Open ilianot opened 5 years ago

ilianot commented 5 years ago

parser.js: REX_LISTUNIX when owner is blank the entries are not parsed. I fixed the problem removing \s+ after (?\d+) and replacing it with a space and changing S+ with S* as below:

REX_LISTUNIX = XRegExp.cache('...(?\d+) (?\S*)\s+..')