rstacruz/flatdoc — pull request #13 by asakasinsky (2013-07-22 12:09:35+00:00)
Title: FIX: non-latin headers

**Problem:**
if the "text" value passed to "slugify" function consist only non-latin characters (cyrillic, for example), regular expression match === null. And we get an error on "join('-')".
**Solution:**
I assigned to match result (if match===null) a timestamp. This solution a little bad for the semantics, but completely solve the problem