better way is
```
return lang if lang.match(/[\.@]/) 
```
as you want match to regex and not find it location