Skip to content

Commit

Permalink
Fix insufficient escaping in regex literal in fixture1 test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrause committed Aug 1, 2024
1 parent 738acad commit bb7d2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fixtures/fixture1_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default {
code: dedent`
export const RocheName = pipe(
S.String,
S.pattern(new RegExp('^[^\\n]*[^\\s\\n][^\\n]*$')),
S.pattern(new RegExp('^[^\\\\n]*[^\\\\s\\\\n][^\\\\n]*$')),
S.maxLength(4096),
);
export const RocheNameEncoded = S.encodedSchema(RocheName);
Expand Down

0 comments on commit bb7d2c7

Please sign in to comment.