Skip to content

Code example search isn't escaping the regex #16313

@docs-bot

Description

@docs-bot

Summarize the problem.

Steps to reproduce:

  1. Go to http://localhost:4000/en/actions#code-examples
  2. Type in * (one star) and hit Search

Expected result:

Not an error.

Actual result

CodeExamples.tsx?27e8:25 Uncaught SyntaxError: Invalid regular expression: /*/: Nothing to repeat

extra notes ✏️

Metadata

Metadata

Assignees

Labels

MLH fellowshipThis issue is reserved for the MLH Fellowship programengineeringWill involve Docs Engineering

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions