daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.08k stars 131 forks source link

`default_country` is documented as expecting/returning a string, but the logic works with an array of strings as well #281

Closed alexeyr-ci closed 1 year ago

alexeyr-ci commented 1 year ago

RubyMine highlights Phonelib.default_country = ['CN', 'FR'] suggested in the readme as incorrect because it's documented with # @param country [String|Symbol] default country ISO2 code used for parsing in https://github.com/daddyz/phonelib/blob/a7a08d09bf57edb4211439ecded49d4ba9ccac74/lib/phonelib/core.rb#L42-L53