You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@ark/fast-check generates strings that fail the type when the regex has the u flagΒ #1720
buildStringArbitrary rebuilds the pattern with new RegExp(pattern), so the regex flags are lost. Without u, \u{1F600} matches the literal text u{1F600}, so every generated value fails T. A character-class range that needs u, such as /^[π-π]$/u, throws SyntaxError: Range out of order instead.
Expected: generated strings satisfy the type, or arkToArbitrary throws if fast-check can't support the pattern.
Activity
fix(fast-check): keep regex flags when generating matching strings
docs(changelog): describe the November bug fixes and thank their PR aβ¦