handle both == and ===
Merge pull request #656 from owiber/ternaryregexadjust

Relax namespace regexps