Skip to content
DeployAI
WarningCode broken_regex

A regular expression that stops the site

What it means

One of the code files has a regular expression JavaScript cannot read.

Why it is only a warning

A file like this stops as soon as it loads, and then the whole site does not start, even if the expression sits in a small corner of the code.

How to fix it

  1. Fix the expression on the line the check names.
  2. Run the check again.

Prompt for your agent

Copy it and paste it into your agent. It fixes the project, explains each step, and runs the check again.

DeployAI check found this in the project: A regular expression that stops the site.
JavaScript has no possessive quantifiers: ++, *+ and ?+ throw "Nothing to repeat" as soon as the file loads, so the whole site stops. Usually a backslash was lost too: /(d++)/ was meant to be /(\d+)/. Fix the expression, then run check again.
Explain your plan and wait for my approval before architectural changes. Do not remove features without asking.
Write to me briefly, in simple words.
When done, run: npx deployai@latest check