Fixes regexp pattern matching for localization key
Fixed minor bug with localization key detection