predicates/identifier_predicates
library
Functions
-
isCreditCard(String str)
→ bool
-
Returns
true if str is a valid credit card number (Luhn check).
-
isFQDN(String str, {bool requireTld = true, bool allowUnderscores = false})
→ bool
-
Returns
true if str is a valid fully-qualified domain name.
-
isISBN(String? str, [String? version])
→ bool
-
Returns
true if str is a valid ISBN-10 or ISBN-13.
-
isMongoId(String str)
→ bool
-
Returns
true if str is a valid 24-character MongoDB ObjectId (hex).
-
isUuid(String? str, [String? version])
→ bool
-
Returns
true if str is a valid UUID (any version by default).