christy13/gitty — comment on commit 46eaa1414c861a1ea6c74f5f20145ab7c3b33cc5
File: app/models/profile.rb line 34
By pwnall:

Is the complex regexp really necessary? If it is, then let's pull it as a separate constant.

I like checking that the protocol is `http` or `https`, to avoid XSS, but I don't really care what else shows up in the link.