defunkt/resque — pull request #733 by buddhamagnet (2012-10-26 08:07:55+00:00)
Title: Replaced regex with string operation

May be negligable but the string operation is faster:

```ruby
Benchmark.bm do |b|
server = "redis://"
b.report("regex") do
1.upto(1000) do
server =~ /redis\:\/\//
end
end
b.report("string") do
1.upto(1000) do
server["redis://"]
end
end
end
```
regex real: 0.00320
string real: 0.00273