Rename shouldMatch to hasSpan