Permalink
Browse files

Fixed number conversion

  • Loading branch information...
1 parent 8d277aa commit 4878d84b5f91a6bde95738fb060389e47b145637 @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 4878d84

Please sign in to comment.