Merge branch 'master' of github.com:TelescopeJS/Telescope

This commit is contained in:
Sacha Greif 2014-09-24 14:19:44 +09:00
commit ed58e3e066

View file

@ -71,9 +71,8 @@ getPostCommentUrl = function(postId, commentId){
};
slugify = function(text) {
if(text){
text = text.replace(/[^-a-zA-Z0-9,&\s]+/ig, '');
text = text.replace(/-/gi, "_");
text = text.replace(/\s/gi, "-");
text = text.replace(/[^-_a-zA-Z0-9,&\s]+/ig, '');
text = text.replace(/\s/gi, "+");
text = text.toLowerCase();
}
return text;