Skip to content

Commit 3c8612f

Browse files
committed
Merge pull request #4 from kloverde/1.0.1
documentation fix
2 parents f54a547 + 2e448e2 commit 3c8612f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ <h3>Complex type: mathematical expression</h3>
328328
<li>An integer followed by a plus sign</li>
329329
</ul>
330330
<p>The regular expression for that is <code>/^\d+\+?$/</code>. Putting it all together, we get:</p>
331-
<code>cfg.addType( "additionExpr", /^\d+\+\d+$/, /^\d+$|^\d+\+$/ );</code><br/><br/>
331+
<code>cfg.addType( "additionExpr", /^\d+\+\d+$/, /^\d+\+?$/ );</code><br/><br/>
332332
<input type="text" id="txtAdditionExpr" />
333333
</div>
334334

0 commit comments

Comments
 (0)