Skip to content

Commit ba03f0e

Browse files
committed
fix naming
1 parent 3534bf7 commit ba03f0e

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/routes/+page.svelte

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
let regex = $state('(?<name>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})')
88
let string = $state('[email protected]')
99
10-
let case_insensitive_flag = $state(false)
11-
let dotall_flag = $state(false)
12-
let multiline_flag = $state(false)
13-
let disable_unicode_groups_flag = $state(false)
14-
let longest_match_flag = $state(false)
10+
let caseInsensitiveFlag = $state(false)
11+
let dotallFlag = $state(false)
12+
let multilineFlag = $state(false)
13+
let disableUnicodeGroupsflag = $state(false)
14+
let longestMatchFlag = $state(false)
1515
1616
let results = $state({})
1717
@@ -49,19 +49,19 @@
4949
5050
$effect(() => {
5151
let flags = 0
52-
if (case_insensitive_flag) {
52+
if (caseInsensitiveFlag) {
5353
flags = flags | CASE_INSENSITIVE
5454
}
55-
if (dotall_flag) {
55+
if (dotallFlag) {
5656
flags = flags | DOTALL
5757
}
58-
if (multiline_flag) {
58+
if (multilineFlag) {
5959
flags = flags | MULTILINE
6060
}
61-
if (disable_unicode_groups_flag) {
61+
if (disableUnicodeGroupsflag) {
6262
flags = flags | DISABLE_UNICODE_GROUPS
6363
}
64-
if (longest_match_flag) {
64+
if (longestMatchFlag) {
6565
flags = flags | LONGEST_MATCH
6666
}
6767
// debounce result
@@ -110,43 +110,43 @@
110110
<div>
111111
<fieldset>
112112
<legend>Regular expression flags</legend>
113-
<label for="case_insensitive_flag">
113+
<label for="caseInsensitiveFlag">
114114
<input
115115
type="checkbox"
116-
id="case_insensitive_flag"
117-
name="case_insensitive_flag"
118-
bind:checked={case_insensitive_flag}
116+
id="caseInsensitiveFlag"
117+
name="caseInsensitiveFlag"
118+
bind:checked={caseInsensitiveFlag}
119119
/>
120120
Case insensitive matching
121121
</label>
122-
<label for="dotall_flag">
123-
<input type="checkbox" id="dotall_flag" name="dotall_flag" bind:checked={dotall_flag} />
122+
<label for="dotallFlag">
123+
<input type="checkbox" id="dotallFlag" name="dotallFlag" bind:checked={dotallFlag} />
124124
"." matches all characters
125125
</label>
126-
<label for="multiline_flag">
126+
<label for="multilineFlag">
127127
<input
128128
type="checkbox"
129-
id="multiline_flag"
130-
name="multiline_flag"
131-
bind:checked={multiline_flag}
129+
id="multilineFlag"
130+
name="multilineFlag"
131+
bind:checked={multilineFlag}
132132
/>
133133
Multiline matching
134134
</label>
135-
<label for="disable_unicode_groups_flag">
135+
<label for="disableUnicodeGroupsflag">
136136
<input
137137
type="checkbox"
138-
id="disable_unicode_groups_flag"
139-
name="disable_unicode_groups_flag"
140-
bind:checked={disable_unicode_groups_flag}
138+
id="disableUnicodeGroupsflag"
139+
name="disableUnicodeGroupsflag"
140+
bind:checked={disableUnicodeGroupsflag}
141141
/>
142142
Disable unicode groups
143143
</label>
144-
<label for="longest_match_flag">
144+
<label for="longestMatchFlag">
145145
<input
146146
type="checkbox"
147-
id="longest_match_flag"
148-
name="longest_match_flag"
149-
bind:checked={longest_match_flag}
147+
id="longestMatchFlag"
148+
name="longestMatchFlag"
149+
bind:checked={longestMatchFlag}
150150
/>
151151
Matches longest possible string
152152
</label>

0 commit comments

Comments
 (0)