mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge branch 'master' of github.com:TelescopeJS/Telescope
This commit is contained in:
commit
ed58e3e066
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue