Skip to content

Commit

Permalink
new libs
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Oct 19, 2024
1 parent 8ea16a3 commit d5bbf93
Show file tree
Hide file tree
Showing 3 changed files with 426 additions and 458 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@
"devDependencies": {
"@picocss/pico": "^2.0.6",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@sveltejs/kit": "^2.7.1",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/cookie": "^0.6.0",
"@yarnpkg/pnpify": "^4.1.2",
"@yarnpkg/pnpify": "^4.1.3",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.0",
"lodash": "^4.17.21",
"postcss": "^8.4.47",
"postcss-import": "^16.1.0",
"postcss-load-config": "^6.0.1",
"postcss-preset-env": "^10.0.5",
"postcss-preset-env": "^10.0.7",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-svelte": "^3.2.7",
"re2js": "^0.4.2",
"svelte": "^4.2.19",
"svelte-check": "^4.0.2",
"svelte-preprocess": "^6.0.2",
"typescript": "^5.6.2",
"vite": "^5.4.7"
"svelte": "^5.0.2",
"svelte-check": "^4.0.5",
"svelte-preprocess": "^6.0.3",
"typescript": "^5.6.3",
"vite": "^5.4.9"
},
"type": "module",
"packageManager": "[email protected]"
Expand Down
18 changes: 13 additions & 5 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,30 @@
const execRE2JSDebounce = debounce(execRE2JS, 300)
const {
CASE_INSENSITIVE,
DOTALL,
MULTILINE,
DISABLE_UNICODE_GROUPS,
LONGEST_MATCH
} = RE2JS
$: {
let flags = 0
if (case_insensitive_flag) {
flags = flags | RE2JS.CASE_INSENSITIVE
flags = flags | CASE_INSENSITIVE
}
if (dotall_flag) {
flags = flags | RE2JS.DOTALL
flags = flags | DOTALL
}
if (multiline_flag) {
flags = flags | RE2JS.MULTILINE
flags = flags | MULTILINE
}
if (disable_unicode_groups_flag) {
flags = flags | RE2JS.DISABLE_UNICODE_GROUPS
flags = flags | DISABLE_UNICODE_GROUPS
}
if (longest_match_flag) {
flags = flags | RE2JS.LONGEST_MATCH
flags = flags | LONGEST_MATCH
}
// debounce result
execRE2JSDebounce(regex, string, flags)
Expand Down
Loading

0 comments on commit d5bbf93

Please sign in to comment.