Fix regex

~ in nginx matches a regex, and just a dot `.` in regex matches any single character. To match a the dot we need to escape it like `\.`
Merge pull request #101 from gdamjan/master

Fix regex