Skip to content

Commit ed87887

Browse files
committed
new libs
1 parent 5a0aa68 commit ed87887

File tree

4 files changed

+381
-339
lines changed

4 files changed

+381
-339
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
},
99
env: {
1010
browser: true,
11-
es2017: true,
11+
es2020: true,
1212
node: true
1313
}
1414
};

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@
1313
"devDependencies": {
1414
"@picocss/pico": "^2.0.6",
1515
"@sveltejs/adapter-static": "^3.0.6",
16-
"@sveltejs/kit": "^2.8.1",
17-
"@sveltejs/vite-plugin-svelte": "^4.0.1",
16+
"@sveltejs/kit": "^2.12.1",
17+
"@sveltejs/vite-plugin-svelte": "^5.0.2",
1818
"@types/cookie": "^1.0.0",
1919
"@yarnpkg/pnpify": "^4.1.3",
2020
"eslint": "^8.57.1",
2121
"eslint-config-prettier": "^9.1.0",
22-
"eslint-plugin-svelte": "^2.46.0",
22+
"eslint-plugin-svelte": "^2.46.1",
2323
"lodash": "^4.17.21",
2424
"postcss": "^8.4.49",
2525
"postcss-import": "^16.1.0",
2626
"postcss-load-config": "^6.0.1",
27-
"postcss-preset-env": "^10.1.1",
28-
"prettier": "^3.3.3",
29-
"prettier-plugin-svelte": "^3.2.8",
27+
"postcss-preset-env": "^10.1.2",
28+
"prettier": "^3.4.2",
29+
"prettier-plugin-svelte": "^3.3.2",
3030
"re2js": "^0.4.3",
31-
"svelte": "^5.2.4",
32-
"svelte-check": "^4.0.9",
31+
"svelte": "^5.14.1",
32+
"svelte-check": "^4.1.1",
3333
"svelte-preprocess": "^6.0.3",
34-
"typescript": "^5.6.3",
35-
"vite": "^5.4.11"
34+
"typescript": "^5.7.2",
35+
"vite": "^6.0.3"
3636
},
3737
"type": "module",
3838
"packageManager": "yarn@4.5.1"

src/routes/+page.svelte

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@
4545
4646
const execRE2JSDebounce = debounce(execRE2JS, 300)
4747
48-
const {
49-
CASE_INSENSITIVE,
50-
DOTALL,
51-
MULTILINE,
52-
DISABLE_UNICODE_GROUPS,
53-
LONGEST_MATCH
54-
} = RE2JS
48+
const { CASE_INSENSITIVE, DOTALL, MULTILINE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH } = RE2JS
5549
5650
$effect(() => {
5751
let flags = 0
@@ -76,10 +70,13 @@
7670
7771
onMount(() => {
7872
globalThis.RE2JS = RE2JS // expose RE2JS to global scope
79-
console.log('%c Feel free to try RE2JS here 😎', `color: light-dark(
73+
console.log(
74+
'%c Feel free to try RE2JS here 😎',
75+
`color: light-dark(
8076
oklch(50% 0.15 100),
8177
oklch(90% 0.15 100)
82-
)`)
78+
)`
79+
)
8380
})
8481
</script>
8582

@@ -96,8 +93,8 @@
9693
id="regex"
9794
name="regex"
9895
placeholder="Insert your regular expression here"
99-
bind:value="{regex}"
100-
aria-invalid="{results && !results.success}"
96+
bind:value={regex}
97+
aria-invalid={results && !results.success}
10198
/>
10299

103100
<label for="string">Test string</label>
@@ -106,7 +103,7 @@
106103
id="string"
107104
name="string"
108105
placeholder="Insert your test string here"
109-
bind:value="{string}"
106+
bind:value={string}
110107
></textarea>
111108
</div>
112109

@@ -118,20 +115,20 @@
118115
type="checkbox"
119116
id="case_insensitive_flag"
120117
name="case_insensitive_flag"
121-
bind:checked="{case_insensitive_flag}"
118+
bind:checked={case_insensitive_flag}
122119
/>
123120
Case insensitive matching
124121
</label>
125122
<label for="dotall_flag">
126-
<input type="checkbox" id="dotall_flag" name="dotall_flag" bind:checked="{dotall_flag}" />
123+
<input type="checkbox" id="dotall_flag" name="dotall_flag" bind:checked={dotall_flag} />
127124
"." matches all characters
128125
</label>
129126
<label for="multiline_flag">
130127
<input
131128
type="checkbox"
132129
id="multiline_flag"
133130
name="multiline_flag"
134-
bind:checked="{multiline_flag}"
131+
bind:checked={multiline_flag}
135132
/>
136133
Multiline matching
137134
</label>
@@ -140,7 +137,7 @@
140137
type="checkbox"
141138
id="disable_unicode_groups_flag"
142139
name="disable_unicode_groups_flag"
143-
bind:checked="{disable_unicode_groups_flag}"
140+
bind:checked={disable_unicode_groups_flag}
144141
/>
145142
Disable unicode groups
146143
</label>
@@ -149,7 +146,7 @@
149146
type="checkbox"
150147
id="longest_match_flag"
151148
name="longest_match_flag"
152-
bind:checked="{longest_match_flag}"
149+
bind:checked={longest_match_flag}
153150
/>
154151
Matches longest possible string
155152
</label>
@@ -181,8 +178,8 @@
181178
<td class="val-cell">
182179
<span
183180
class="status-tag"
184-
class:status-tag__yes="{results.matches}"
185-
class:status-tag__no="{!results.matches}">{results.matches ? 'yes' : 'no'}</span
181+
class:status-tag__yes={results.matches}
182+
class:status-tag__no={!results.matches}>{results.matches ? 'yes' : 'no'}</span
186183
>
187184
</td>
188185
</tr>
@@ -191,8 +188,8 @@
191188
<td class="val-cell">
192189
<span
193190
class="status-tag"
194-
class:status-tag__yes="{results.contains}"
195-
class:status-tag__no="{!results.contains}">{results.contains ? 'yes' : 'no'}</span
191+
class:status-tag__yes={results.contains}
192+
class:status-tag__no={!results.contains}>{results.contains ? 'yes' : 'no'}</span
196193
>
197194
</td>
198195
</tr>
@@ -201,8 +198,8 @@
201198
<td class="val-cell">
202199
<span
203200
class="status-tag"
204-
class:status-tag__yes="{results.startWith}"
205-
class:status-tag__no="{!results.startWith}">{results.startWith ? 'yes' : 'no'}</span
201+
class:status-tag__yes={results.startWith}
202+
class:status-tag__no={!results.startWith}>{results.startWith ? 'yes' : 'no'}</span
206203
>
207204
</td>
208205
</tr>

0 commit comments

Comments
 (0)