refactor(meta_generator): update regex and avoid edge case
#3697

SukkaW wants to merge SukkaW:meta-generator into hexojs:master

We do not currently have an analysis of these two commits