News for hackers. Stuff that matters.
Re:Webkit2png: Python (cmd) tool that creates png screenshot... by sailormoon on Sunday April 11, 2010 @08:15AM (#1256739)
This is probably the wrong forum but there is a mistake in the regex in the makeFilename method. In trying to detect https it will strip the first letter of any domain starting with s. Check it out:

  >> name = 'http://super.com/'
  => "http://super.com/"
  >> name.gsub!(/\W/, '')
  => "httpsupercom"
  >> name.gsub!(/^http(s)?/i, '')
  => "upercom"
Cool, though ; )

There are no comments on this comment yet.