Merge pull request #3178 from ashie/fix-match-regex-for-empty-meta