Skip to content

Commit

Permalink
Merge pull request #54706 from QichenZhu/fix/54151
Browse files Browse the repository at this point in the history
Limit search query length
  • Loading branch information
luacmartins authored Jan 2, 2025
2 parents 548b23f + ff114f1 commit 4dd5e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3211,6 +3211,7 @@ const CONST = {
REPORT_NAME_LIMIT: 100,
TITLE_CHARACTER_LIMIT: 100,
DESCRIPTION_LIMIT: 1000,
SEARCH_QUERY_LIMIT: 1000,
WORKSPACE_NAME_CHARACTER_LIMIT: 80,
STATE_CHARACTER_LIMIT: 32,

Expand Down
1 change: 1 addition & 0 deletions src/components/Search/SearchRouter/SearchRouterInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function SearchRouterInput(
enterKeyHint="search"
accessibilityLabel={translate('search.searchPlaceholder')}
disabled={disabled}
maxLength={CONST.SEARCH_QUERY_LIMIT}
onSubmitEditing={onSubmit}
shouldUseDisabledStyles={false}
textInputContainerStyles={[styles.borderNone, styles.pb0]}
Expand Down

0 comments on commit 4dd5e08

Please sign in to comment.