Skip to content

Commit

Permalink
Escape regex in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 27, 2025
1 parent c931719 commit 08db110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/doc/keyfilter/regexdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function RegexDemo() {
<label htmlFor="spacekey" className="font-bold block mb-2">
Block Space
</label>
<InputText id="spacekey" keyfilter={/[^\s]/} className="w-full" />
<InputText id="spacekey" keyfilter={/[^\\s]/} className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="chars" className="font-bold block mb-2">
Expand All @@ -42,7 +42,7 @@ export default function RegexDemo() {
<label htmlFor="spacekey" className="font-bold block mb-2">
Block Space
</label>
<InputText id="spacekey" keyfilter={/[^\s]/} className="w-full" />
<InputText id="spacekey" keyfilter={/[^\\s]/} className="w-full" />
</div>
<div className="flex-auto">
<label htmlFor="chars" className="font-bold block mb-2">
Expand Down

0 comments on commit 08db110

Please sign in to comment.