Home / Function/ normalizeQuery() — ui Function Reference

normalizeQuery() — ui Function Reference

Architecture documentation for the normalizeQuery() function in use-search-registry.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  076e8596_27a0_335d_0472_07b50a5f7df7["normalizeQuery()"]
  d1366928_803e_21f1_c52e_dc3a4d4c6a37["use-search-registry.ts"]
  076e8596_27a0_335d_0472_07b50a5f7df7 -->|defined in| d1366928_803e_21f1_c52e_dc3a4d4c6a37
  8a36dbc6_a578_f3f4_fe9f_b25585b29029["finderFn()"]
  8a36dbc6_a578_f3f4_fe9f_b25585b29029 -->|calls| 076e8596_27a0_335d_0472_07b50a5f7df7
  style 076e8596_27a0_335d_0472_07b50a5f7df7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/hooks/use-search-registry.ts lines 5–6

const normalizeQuery = (query: string) =>
  query.toLowerCase().replaceAll(" ", "").replaceAll("@", "")

Subdomains

Called By

Frequently Asked Questions

What does normalizeQuery() do?
normalizeQuery() is a function in the ui codebase, defined in apps/v4/hooks/use-search-registry.ts.
Where is normalizeQuery() defined?
normalizeQuery() is defined in apps/v4/hooks/use-search-registry.ts at line 5.
What calls normalizeQuery()?
normalizeQuery() is called by 1 function(s): finderFn.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free