Fix `^.*$` pattern matching in extended-search mode (#9)