Skip to content

Commit

Permalink
I prefer single quotes unless interpolating
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Oct 28, 2011
1 parent 1902238 commit d1152dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client_side_validations/core_ext/regexp.rb
@@ -1,6 +1,6 @@
class Regexp
def as_json(options = nil)
Regexp.new inspect.sub('\\A','^').sub('\\Z','$').sub("\\z",'$').sub(/^\//,'').sub(/\/[a-z]*$/,'').gsub(/\(\?#.+\)/, '').gsub(/\(\?-\w+:/,'('), self.options
Regexp.new inspect.sub('\\A','^').sub('\\Z','$').sub('\\z','$').sub(/^\//,'').sub(/\/[a-z]*$/,'').gsub(/\(\?#.+\)/, '').gsub(/\(\?-\w+:/,'('), self.options
end

def to_json(options = nil)
Expand Down

0 comments on commit d1152dd

Please sign in to comment.