Skip to content

Commit d021efa

Browse files
author
Daniel Arthur Gallagher
committed
refactor: Make the flag validator marginally better
1 parent 44432d0 commit d021efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2>A javascript regular expression editor</h2>
3939
<div id="main">
4040
<div id="expression">
4141
<h2>Regular Expression:</h2>
42-
/<input name="expression">/<input name="option" type="text" pattern="gimuy" spellcheck="false" autocomplete="off" title="Set any flags you want to apply to your expression">
42+
/<input name="expression">/<input name="option" type="text" pattern="(g|i|m|u|y){0,5}" spellcheck="false" autocomplete="off" title="Set any flags you want to apply to your expression">
4343
</div>
4444

4545
<div id="test_strings">

0 commit comments

Comments
 (0)