logoalt Hacker News

matt_knlast Friday at 9:39 PM1 replyview on HN

I'm looking at the code but I don't quite see that?

  auto start= result.indexOf("http://");
  ...
  auto end= result.indexOf("\r", start);
  ...
  m_describeUrl= result.sliced(start, end - start);
I don't think end can ever be < start (other than < 0 if not found, which is handled).

Replies

jeffbeelast Friday at 9:47 PM

Because I'm dumb