Skip to content

Can't create new post with non-English title. #15

@hummermania

Description

@hummermania

Can't create new post with non-English title because in the lib/blog.js the regexp /\W/g - replace all char wich is not in Latin. I suggest to replace this expr. to :

var str = string.replace(/[\p{L}]/g,'-'). ...

Get it from http://www.regular-expressions.info/unicode.html and tested - good work.
But this can create doc with the id in non-English letter in the db. =)

Sorry of my english.
Markevich Alexander.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions