Closed rupurt closed 9 years ago
Submitted in #5
@nathanboktae regex would be great. Do you prefer leveraging matches or having the method take a regex as an argument? i.e.
expect(myElm).to.contain.text.matches(/Fo{1,2}/);
vs
expect(myElm).to.contain.text(/Fo{1,2}/);
I'd prefer the later. The former if it was using matching
instead of matches
since it reads as proper English would be alright too.
Hi,
Thanks for the awesome work on this chai addon.
It would be awesome if this library had support for matching a substring of text. e.g.