Skip to content

Commit 66c3f0b

Browse files
committed
Add some missing ; to the documentation
1 parent 0544f61 commit 66c3f0b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,13 +738,13 @@ <h2>Validate function</h2>
738738
validate({username: "nicklas", password: "better"}, constraints);
739739
// =&gt; {"username": ["Username 'nicklas' is not allowed"]}
740740

741-
validate({password: "better"}, constraints, {fullMessages: false})
741+
validate({password: "better"}, constraints, {fullMessages: false});
742742
// =&gt; {"username": ["can't be blank"]}
743743

744-
validate({}, constraints, {format: "flat"})
744+
validate({}, constraints, {format: "flat"});
745745
// =&gt; ["Username can't be blank", "Password can't be blank"]
746746

747-
validate({username: "nicklas", password: "bad"}, constraints, {format: "detailed"})
747+
validate({username: "nicklas", password: "bad"}, constraints, {format: "detailed"});
748748
// =&gt; [
749749
// {
750750
// "attribute": "username",
@@ -1644,13 +1644,13 @@ <h2>Validators</h2>
16441644
<b>Important!</b> All other values are considered valid (including functions)!
16451645
</p>
16461646

1647-
<pre><code class="javascript">validate({}, {username: {presence: true}})
1647+
<pre><code class="javascript">validate({}, {username: {presence: true}});
16481648
// =&gt; {"username": ["Username can't be blank"]}
16491649

1650-
validate({username: "ansman"}, {username: {presence: true}})
1650+
validate({username: "ansman"}, {username: {presence: true}});
16511651
// =&gt; undefined
16521652

1653-
validate({}, {username: {presence: {message: "is required"}}})
1653+
validate({}, {username: {presence: {message: "is required"}}});
16541654
// =&gt; {"username": ["Username is required"]}
16551655

16561656
validate.validators.presence.message = "is required";

0 commit comments

Comments
 (0)