Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ new configuration

  • Loading branch information...
commit d19b53f2105a032a957ac7b398443667b71204e1 1 parent 25a862a
Andrew Zinenko authored
Showing with 13 additions and 13 deletions.
  1. +13 −13 lib/vk-ruby/core.rb
View
26 lib/vk-ruby/core.rb
@@ -78,20 +78,20 @@ def connection_params options
def parse string
attempt = 1
- begin
+ # begin
::JSON.parse(string)
- rescue ::JSON::ParserError => exxxc
- logger.error "Invalid encoding" if logger
-
- if attempt == 1
- string = ::Iconv.iconv("UTF-8//IGNORE", "UTF-8", (string + " ")).first[0..-2]
- string.gsub!(/[^а-яa-z0-9\\\'\"\,\[\]\{\}\.\:\_\s\/]/i, '?')
- string.gsub!(/(\s\s)*/, '')
- else
- raise ::VK::ParseException, string
- end
-
- attempt += 1; retry
+ # rescue ::JSON::ParserError => exxxc
+ # logger.error "Invalid encoding" if logger
+
+ # if attempt == 1
+ # string = ::Iconv.iconv("UTF-8//IGNORE", "UTF-8", (string + " ")).first[0..-2]
+ # string.gsub!(/[^а-яa-z0-9\\\'\"\,\[\]\{\}\.\:\_\s\/]/i, '?')
+ # string.gsub!(/(\s\s)*/, '')
+ # else
+ # raise ::VK::ParseException, string
+ # end
+
+ # attempt += 1; retry
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.