Skip to content

Commit 4a91f8e

Browse files
committed
fix TS error
1 parent 0be1ed6 commit 4a91f8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sudodevnull/datastar",
3-
"version": "0.19.8",
3+
"version": "0.19.9",
44
"type": "module",
55
"homepage": "https://data-star.dev",
66
"repository": "https://github.com/delaneyj/datastar",

packages/library/src/lib/plugins/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010

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

0 commit comments

Comments
 (0)