Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed global leak of slug

  • Loading branch information...
commit 0090fc9ef04325694bc85dae97cfd78b7f17c901 1 parent 1fc7df7
vincent authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/uslug.js
View
2  lib/uslug.js
@@ -36,7 +36,7 @@
if (val && ~'LN'.indexOf(val)) rv.push(c);
if (val && ~'Z'.indexOf(val)) rv.push(' ');
}
- slug = rv.join('').replace(/^\s+|\s+$/g, '').replace(/\s+/g,' ');
+ var slug = rv.join('').replace(/^\s+|\s+$/g, '').replace(/\s+/g,' ');
if (!spaces) slug = slug.replace(/[\s\-]+/g,'-');
if (lower) slug = slug.toLowerCase();
return slug;
Please sign in to comment.
Something went wrong with that request. Please try again.