Does self contains at least one instance of pattern?

assert "hello".has('l')
assert "hello".has("ll")
assert not "hello".has("lll")

Property definitions

core :: string_search $ Text :: has
	# Does `self` contains at least one instance of `pattern`?
	#
	#     assert "hello".has('l')
	#     assert "hello".has("ll")
	#     assert not "hello".has("lll")
	fun has(pattern: Pattern): Bool do return pattern.is_in(self)
lib/core/text/string_search.nit:494,2--499,62