Skip to content

Commit

Permalink
fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
delaneyj committed Oct 25, 2024
1 parent 0be1ed6 commit 4a91f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sudodevnull/datastar",
"version": "0.19.8",
"version": "0.19.9",
"type": "module",
"homepage": "https://data-star.dev",
"repository": "https://github.com/delaneyj/datastar",
Expand Down
4 changes: 2 additions & 2 deletions packages/library/src/lib/plugins/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {

const validJSIdentifier = `[a-zA-Z_$]+`
const validNestedJSIdentifier = validJSIdentifier + `[0-9a-zA-Z_$.]*`
function wholePrefixSuffix(rune: string, prefix: string, suffix: string, nestable: bool = true) {
const identifier = nestable ? validNestedJSIdentifier : validJSIdentifier;
function wholePrefixSuffix(rune: string, prefix: string, suffix: string, nestable = true) {
const identifier = nestable ? validNestedJSIdentifier : validJSIdentifier
return new RegExp(`(?<whole>\\${rune}(?<${prefix}>${identifier})${suffix})`, `g`)
}

Expand Down

0 comments on commit 4a91f8e

Please sign in to comment.