diff --git a/flatdoc.js b/flatdoc.js index 32e6a11..e04b987 100644 --- a/flatdoc.js +++ b/flatdoc.js @@ -428,7 +428,9 @@ Also includes: } function slugify(text) { - return text.toLowerCase().match(/[a-z0-9]+/g).join('-'); + var match = text.toLowerCase().match(/[a-z0-9]+/g); + match = (match===null) ? [new Date().getTime()] : match; + return match.join('-'); } })(jQuery); /*!