Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't try to parse null ranges

  • Loading branch information...
commit c59b93a8e75e094c453245a4807c4ea7f7b7005e 1 parent 0191039
@isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  semver.js
View
2  semver.js
@@ -59,7 +59,7 @@ var starExpression = /(<|>)?=?\s*\*/g
, compTrimReplace = "$1$3"
function toComparators (range) {
- return range.trim()
+ return (range || "").trim()
.replace(expressions.parseRange, exports.rangeReplace)
.split(/\s+/)
.map(replaceSpermies)
Please sign in to comment.
Something went wrong with that request. Please try again.