
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
For Ex. Current country code is ”+66” (system will detect country code based on "+66"), please find the rules below,
If user input “0” in front of phone number, then replace the “0” with current country code (which is “+66”)
Example 1.
Example 2.
Example 3.
Example 4.
Example 5.
Example 6.
Example 7.
Example 8.
Example 9.
Example 10.
Add this line to your application's Gemfile:
gem 'format_phone_number'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install format_phone_number
FormatPhoneNumber.format(input_phone_number, country_code)
Example:
FormatPhoneNumber.format('0897878965', 'th') # => +66897878965
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/format_phone_number.
FAQs
Unknown package
We found that format_phone_number demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.