Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
Fixed number conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Le Berrigaud committed Nov 12, 2012
1 parent 8d277aa commit f3e37cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Expand Up @@ -7,7 +7,7 @@ def to_oc
oc = JSON.pretty_generate(self, indent: ' ')
.gsub('{', '@{')
.gsub('[', '@[')
.gsub(/([^a-zA-Z0-9])([0-9]+)/, "\\1@\\2")
.gsub(/(:\s([0-9]+)/, ": @\\1")
.gsub(/"([^"]+)"/, '@"\\1"')
end
end
Expand Down

0 comments on commit f3e37cf

Please sign in to comment.