Permalink
Browse files

Fixed number conversion

  • Loading branch information...
1 parent 8d277aa commit f3e37cfc77000a661bbbaad258c302b25853214d @dam5s committed Nov 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.rb
View
2 app.rb
@@ -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

0 comments on commit f3e37cf

Please sign in to comment.