Skip to content

Commit 45e14af

Browse files
author
Rand McKinney
authored
Update validations.js
Fix API doc per strongloop/loopback#2472
1 parent 6bc4441 commit 45e14af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Validatable.validatesExclusionOf = getConfigurator('exclusion');
148148
* Validate format. Require a model to include a property that matches the given format.
149149
*
150150
* Require a model to include a property that matches the given format. Example:
151-
* `User.validatesFormat('name', {with: /\w+/});`
151+
* `User.validatesFormatOf('name', {with: /\w+/});`
152152
*
153153
* @param {String} propertyName Property name to validate.
154154
* @options {Object} Options

0 commit comments

Comments
 (0)