Check user roles (Check.Regex()).
- Source:
Methods
(static) Check(…args)
Self description
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
String |
<repeatable> |
Values to be checked |
- Source:
Throws:
-
regex-police-alarm - if param not match regex
- Type
- Meteor.Error
Example
const checkId = Check.Regex('8MZekqrgCkhQqaNty').id()
const checkMultiplesId = Check.Regex('8MZekqrgCkhQqaNty', '9MAekhrgTkhaqa3ry').id()
const checkUrl = Check.Regex('www.lern.com.br').url()