fix(typeahead): allow multiple line expression

introduce [\s\S]+ to include both whitespace and non whitespace
characters

Fixes #1687
Closes #1850