Skip to content
Browse files

fixed global leak of slug

  • Loading branch information...
1 parent 1fc7df7 commit 0090fc9ef04325694bc85dae97cfd78b7f17c901 vincent committed May 6, 2012
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;

0 comments on commit 0090fc9

Please sign in to comment.
Something went wrong with that request. Please try again.