Name: meteor-check-extension
Owner: PeerLibrary
Description: Extensions to the built-in check package
Created: 2015-03-03 09:20:51.0
Updated: 2017-07-29 15:45:24.0
Pushed: 2018-01-15 10:00:11.0
Homepage: https://atmospherejs.com/peerlibrary/check-extension
Size: 7
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Meteor package which provides a few extensions to the built-in Match
object.
or add peerlibrary:check-extension
The following additional checks are provided:
Match.PositiveNumber
matches only positive numbers.Match.NonEmptyString
matches only strings with a length greater than zero.Match.DocumentId
matches only valid ObjectIds.Match.ObjectWithOnlyStrings
matches only objects containing strings as keys and values.Match.Enumeration(pattern, enumeration)
matches values matching pattern
belonging to a certain enumeration
object or array.Match.SHA256String
matches hex-encoded SHA-256 digests.Match.EMail
matches only non-empty e-mail strings.Match.OptionalOrNull(pattern)
matches an optional pattern
or an explicit null
value.Match.RegexString(regex)
matches strings matching regex
regular expression.