lib/google_translate.rb in shvets-google_translate-0.6.1 vs lib/google_translate.rb in shvets-google_translate-0.6.2

- old
+ new

@@ -113,11 +113,11 @@ spaces = '\s?' quote = '(\s|\'|")?' text = '(.*)' - re1 = /<select#{spaces}name=#{quote}#{tag_name}#{quote}#{spaces}id=#{quote}#{tag_id}#{quote}#{spaces}tabindex=0>(.*)<\/select>/ - text = re1.match(buffer)[5] + re1 = /<select#{spaces}name=#{quote}#{tag_name}#{quote}#{spaces}id=#{quote}#{tag_id}#{quote}#{spaces}tabindex=#{spaces}#{quote}0#{quote}#{spaces}>(.*)<\/select>/ + text = re1.match(buffer)[7] re2 = /<option(\s*)value="([a-z|A-Z]*)">([a-z|A-Z]*)<\/option>/ matches = text.scan(re2)