Fixed entity detection which contain dot at the end

Fixed entity detection for posts like
`Hello ^jeena.net. This is a great test to show this bug.`
Before `^jeena.net.` (including the dot) was detected as entity which is wrong.