Permalink
Browse files

Fix typo in tilde trim expression

  • Loading branch information...
1 parent 54a9797 commit ff7e65e5a09c9ba54d7eefb7bec416d00dcb275a @isaacs isaacs committed Jul 24, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 semver.js
View
@@ -161,8 +161,8 @@ var LONETILDE = R++;
src[LONETILDE] = '(?:~>?)';
var TILDETRIM = R++;
-src[TILDETRIM] = src[LONETILDE] + '\s+';
-var tildeTrimReplace = '$1';
+src[TILDETRIM] = src[LONETILDE] + '\\s+';
+var tildeTrimReplace = '~';
var TILDE = R++;
src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$';

0 comments on commit ff7e65e

Please sign in to comment.