Skip to content

Commit b6ab855

Browse files
authored
Merge pull request #46 from DanArthurGallagher/validate-flags
Add attributes to the flag input
2 parents 011a54b + bf7ac8c commit b6ab855

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

application.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,13 @@ input, textarea, #results, #groups {
215215
}
216216

217217
#expression input[name=option] {
218+
box-sizing: border-box;
218219
margin-left: 4px;
219-
width: 50px;
220+
width: 70px;
221+
}
222+
223+
.invalid-expression, input:invalid {
224+
border: 1px solid #F7296F;
220225
}
221226

222227
#expression input[name=expression],

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">
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">
4343
</div>
4444

4545
<div id="test_strings">

0 commit comments

Comments
 (0)