Coder Social home page Coder Social logo

Identifying an unsupported country about phony HOT 4 CLOSED

floere avatar floere commented on August 18, 2024
Identifying an unsupported country

from phony.

Comments (4)

floere avatar floere commented on August 18, 2024

Have you tried it using the Phony based validations?

from phony.

vladgurovich avatar vladgurovich commented on August 18, 2024

I have and the problem is not with Phony validation per se, but with the fact that not all countries have matchers implemented for them.
For instance, a Philipine phone number is not plausible due to the fact that its matchers are not yet implemented:

Loading development environment (Rails 3.1.6)
[1] pry(main)> Phony.plausible? "6327332350"
=> false
[2] pry(main)> 

What i'd like to have is an ability to fallback to simple validations(i.e. whether a phone number string is in fact mostly numeric) for those countries where matchers are not yet written. Unfortunately I wasnt able to figure out how to get a list of countries with "default" or "todo" matcher programmatically.

from phony.

floere avatar floere commented on August 18, 2024

Hi Vladimir,

Thanks a lot for the clarification!
Can you please try Phony 1.8.0 and tell me if it's satisfactory?

Cheers,
Florian

from phony.

floere avatar floere commented on August 18, 2024

Closing this since I never got an answer.

from phony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.