I think this would read better as `it "keeps lines that do not match either pattern"`.