Skip to content

Commit 2e448e2

Browse files
author
Kurtis LoVerde
committed
documentation fix
1 parent 1ab8dbe commit 2e448e2

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)