Home / Function/ escapeRegExp() — ui Function Reference

escapeRegExp() — ui Function Reference

Architecture documentation for the escapeRegExp() function in index.js from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  ebc1a1fb_2351_eb6c_1778_764fbb2a89ac["escapeRegExp()"]
  5b238b2a_3145_ab1b_7b04_128e9652c323["index.js"]
  ebc1a1fb_2351_eb6c_1778_764fbb2a89ac -->|defined in| 5b238b2a_3145_ab1b_7b04_128e9652c323
  06dc8a86_19b9_54a6_9bbc_54e7751a3d49["main()"]
  06dc8a86_19b9_54a6_9bbc_54e7751a3d49 -->|calls| ebc1a1fb_2351_eb6c_1778_764fbb2a89ac
  style ebc1a1fb_2351_eb6c_1778_764fbb2a89ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/test/fixtures/frameworks/remix-indie-stack/remix.init/index.js lines 20–22

const escapeRegExp = (string) =>
  // $& means the whole matched string
  string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");

Subdomains

Called By

Frequently Asked Questions

What does escapeRegExp() do?
escapeRegExp() is a function in the ui codebase, defined in packages/shadcn/test/fixtures/frameworks/remix-indie-stack/remix.init/index.js.
Where is escapeRegExp() defined?
escapeRegExp() is defined in packages/shadcn/test/fixtures/frameworks/remix-indie-stack/remix.init/index.js at line 20.
What calls escapeRegExp()?
escapeRegExp() is called by 1 function(s): main.

Analyze Your Own Codebase

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

Try Supermodel Free