This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function slugify(value) { | |
/* | |
* Convert the the vs in a range of cells into slugs. | |
*/ | |
slug = ''; | |
slug = value.substring(0, 30).toLowerCase(); | |
slug = slug.replace(/[^\w\s-]/g, ''); | |
slug = slug.replace(/\s+/g, '-'); | |
Logger.log(slug); |