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