Skip to content

Commit

Permalink
remove special characters as per
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jan 23, 2024
1 parent 6493f24 commit 6b48f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion property_tests/arbitraries/http/headers_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function HttpHeadersArb() {
const HeaderNameArb = fc.stringMatching(/^[a-zA-Z0-9_-]+$/);

const HeaderValueArb = fc
.stringMatching(/^[a-zA-Z0-9_ :;.,\/"'?!(){}[\]@<>=\-+*#$&`|~^%]+$/)
.stringMatching(/^[a-zA-Z0-9_ .'!-+*#$&`|~^%]+$/)
.map((value) => value.trim());

const HeaderArb = fc.tuple(HeaderNameArb, HeaderValueArb);
Expand Down

0 comments on commit 6b48f9c

Please sign in to comment.