incrementr1.0.0 • Public • Published
Increment identifier strings.
If all character ranges are allowed, identifier strings are incremented in the following order:
z and back to
0. When all characters in the string are
z, all the characters are reset to
0 and another
0 is added to the end of the string. If a certain character range is not allowed, then that range is skipped. For example
Z will go to
0 if lowercase letters are not allowed and
z will go to
a if only lowercase letters are allowed.
const increment = ;;// '1';// 'ABa';// 'AC0';// 'TESTA';// 'HELLP';// '0000';// 'a';// 'AA';;;// All throw errors because identifier does not match pattern