Commit d95ba87b by Joe Maller

update list_outdated module split to both old and new module delimiter.

parent 91e55693
...@@ -163,7 +163,9 @@ class Npm(object): ...@@ -163,7 +163,9 @@ class Npm(object):
data = self._exec(['outdated'], True, False) data = self._exec(['outdated'], True, False)
for dep in data.splitlines(): for dep in data.splitlines():
if dep: if dep:
pkg, other = dep.split('@', 1) # node.js v0.10.22 changed the `npm outdated` module separator
# from "@" to " ". Split on both for backwards compatibility.
pkg, other = re.split('\s|@', dep, 1)
outdated.append(pkg) outdated.append(pkg)
return outdated return outdated
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment