class Crass::Tokenizer
def consume_bad_url
Consumes the remnants of a bad URL and returns the consumed text.
def consume_bad_url text = String.new until @s.eos? if valid_escape? text << consume_escaped elsif valid_escape?(@s.peek(2)) @s.consume text << consume_escaped else char = @s.consume if char == ')' break else text << char end end end text end