Skip to content

Commit e908131

Browse files
refactor(autocomplete): remove previous regex
1 parent 598a22c commit e908131

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/kit-headless/src/components/autocomplete/autocomplete-input.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ export const AutocompleteInput = component$((props: InputProps) => {
5757
const optionValue = option.value.getAttribute('optionValue');
5858
const inputValue = contextService.inputValue.value;
5959

60-
const defaultFilterRegex = '[0-9]*';
61-
const defaultFilterPattern = inputValue + defaultFilterRegex;
62-
const defaultFilter = new RegExp(defaultFilterPattern, 'i');
60+
const defaultFilter = new RegExp(inputValue, 'i');
6361

6462
if (
6563
contextService.inputValue.value.length >= 0 &&

0 commit comments

Comments
 (0)