Skip to content

Commit

Permalink
Fix primefaces#7557: KeyFilter whole word docs fix (primefaces#7559)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 3, 2025
1 parent 0b5ac47 commit a374211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/doc/keyfilter/regexworddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function RegexWordDoc(props) {

const code = {
basic: `
<InputText id="numkeys" keyfilter={/^[+]?(\d{1,12})?$/} validateOnly onInput={validateInput} />
<InputText id="numkeys" keyfilter={/^[+]?(\\d{1,12})?$/} validateOnly onInput={validateInput} />
`,
javascript: `
import React, { useState } from 'react';
Expand Down Expand Up @@ -65,7 +65,7 @@ export default function RegexDemo() {
<label htmlFor="numkeys" className="font-bold block mb-2">
Block Numeric (allow "+" only once at start)
</label>
<InputText id="numkeys" keyfilter={/^[+]?(\d{1,12})?$/} validateOnly onInput={validateInput} />
<InputText id="numkeys" keyfilter={/^[+]?(\\d{1,12})?$/} validateOnly onInput={validateInput} />
</div>
</div>
)
Expand Down Expand Up @@ -105,7 +105,7 @@ export default function RegexDemo() {
<label htmlFor="numkeys" className="font-bold block mb-2">
Block Numeric (allow "+" only once at start)
</label>
<InputText id="numkeys" keyfilter={/^[+]?(\d{1,12})?$/} validateOnly onInput={validateInput} />
<InputText id="numkeys" keyfilter={/^[+]?(\\d{1,12})?$/} validateOnly onInput={validateInput} />
</div>
</div>
)
Expand Down

0 comments on commit a374211

Please sign in to comment.