Skip to content

Conversation

sirosen
Copy link
Contributor

@sirosen sirosen commented Jul 7, 2025

Description

Fixes #341

Implementation details

I've only fixed one issue with this pattern, which is the placement of the hyphen such that regex engines may interpret it as part of a character range.

There is at least one other suspicious irregularity, which is the \/ character sequence.
Perhaps \\/ was meant. Or perhaps \\\\/. But the string does not appear to have been formulated with an eye to the layer of JSON escaping which is at play here.

Absent any clarity on what the intention of this regex is, I've limited this fix to the hyphen issue only.

How to validate

Parse the expression using a variety of target regex engines -- JS is the presumptive target for this repo (?) -- and make sure it matches strings correctly.

@sirosen sirosen changed the title Fix a bad pattern in schema fix: correct a bad pattern in schema Jul 7, 2025
@pete-woods pete-woods enabled auto-merge (squash) September 30, 2025 08:20
@pete-woods pete-woods disabled auto-merge September 30, 2025 08:23
@pete-woods pete-woods force-pushed the fix-bad-schema-pattern branch from 1f8ecbe to af25973 Compare September 30, 2025 08:24
@pete-woods pete-woods merged commit b882fe6 into CircleCI-Public:main Sep 30, 2025
6 checks passed
@sirosen sirosen deleted the fix-bad-schema-pattern branch September 30, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schema contains a regex pattern which fails to compile in some engines

3 participants