This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* These functions validate whether a string corresponds to a Guatemalan tax | |
* identification number, also known as 'Numero de Identificación | |
* Tributaria' (NIT). They employ regular expressions for this purpose, utilizing | |
* the metacharacter shorthand '\d' instead of '[0-9]' to save space. | |
* The approach is highly optimized for bandwidth reduction; readability and | |
* maintenance are not prioritized over optimization. You can observe how this | |
* regular expression works through the following links: | |
* - https://regex101.com/r/d5YFJE/1 | |
* - https://regexr.com/7ieic |