Update story cleanup script
parent
d0ce7f930a
commit
1fca589805
|
@ -18,8 +18,8 @@ function storyLinkCleanup(cb) {
|
|||
console.log(i++);
|
||||
this.pause();
|
||||
story.storyLink = story.storyLink.
|
||||
replace(/\s+/g, ' ').
|
||||
replace(/[^a-z0-9\s]/gi, '').
|
||||
replace(/\s+/g, ' ').
|
||||
toLowerCase().
|
||||
trim();
|
||||
story.save(function (err) {
|
||||
|
|
Loading…
Reference in New Issue