From 9728ef67efc1f31c97df38c89cfe48fc62d8ec6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=96=9F=20=E2=96=96=E2=96=9F=20=E2=96=96?= Date: Thu, 25 Sep 2014 04:07:55 +0200 Subject: [PATCH] add seo friendly flavoured slug --- seo.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 seo.js diff --git a/seo.js b/seo.js new file mode 100644 index 0000000..6a69016 --- /dev/null +++ b/seo.js @@ -0,0 +1,7 @@ +// FIXME nodejs only atm +var slug = require('./slug'); + +// remove periods and quotation marks to be SEO friendly +slug.defaults.remove = /[.'"]/g; + +module.exports = slug;