Skip to content

Commit d0d3e27

Browse files
committed
fixes #242
1 parent 32e7c19 commit d0d3e27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fasthtml/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def show(ft,*rest):
3838
hx_attrs = html_attrs + [f'hx_{o}' for o in hx_attrs.split()]
3939

4040
# %% ../nbs/api/01_components.ipynb
41-
_alpine_re = re.compile(r'x_(\w+)_')
41+
_alpine_re = re.compile(r'^x_(\w+)_')
4242

4343
def attrmap_x(o):
4444
if o.startswith('_at_'): o = '@'+o[4:]

nbs/api/01_components.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"outputs": [],
8686
"source": [
8787
"#| export\n",
88-
"_alpine_re = re.compile(r'x_(\\w+)_')\n",
88+
"_alpine_re = re.compile(r'^x_(\\w+)_')\n",
8989
"\n",
9090
"def attrmap_x(o):\n",
9191
" if o.startswith('_at_'): o = '@'+o[4:]\n",

0 commit comments

Comments
 (0)