question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

window.Parsley.addValidator('euvatin', {
    validate: function(value, format, parsleyField) {
        var re = /^[A-Z][A-Z][A-Za-z0-9 -]{2,}/;
        
        return re.test(value);
    },
    messages: {
        en: "It's not a valid VAT Identification Number",
        it: "Non è un codice IVA valido"
    }
});

PS: GB allows spaces…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Marco-Sullacommented, Mar 30, 2019

See? I changed it as you like, and the tests fail with an obscure message.

0reactions
Marco-Sullacommented, Mar 28, 2019

I tried to put it like integer, but it does not work. Please prove yourself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ddeboer/vatin: Validate VAT identification numbers - GitHub
A small PHP library for validating VAT identification numbers (VATINs). Installation. This library is available on Packagist: $ composer require ddeboer/vatin.
Read more >
vat-validator | Read the Docs
vat-validator · Overview · Downloads · Search · Builds · Versions. Versions. latest · stable. Description. Pythonic VAT validation library ...
Read more >
ricardonavarrom/vatin-validator - Packagist
A PHP library for for validating VAT identification numbers (VATINs). Installation. This library is available on Packagist. You can install this library using ......
Read more >
VATIN Validator | LiteCart Add-ons
This add-on uses the get address method to validate a VATIN number. The user will be alerted if an invalid number is input....
Read more >
VIES VAT number validation - European Commission
Important Disclaimer: As of 01/01/2021, the VoW service to validate UK (GB) VAT numbers ceased to exist while a new service ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found