summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_http_common.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_http_common.ts')
-rw-r--r--ext/node/polyfills/_http_common.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/node/polyfills/_http_common.ts b/ext/node/polyfills/_http_common.ts
index 616fbb65d..01651ce4b 100644
--- a/ext/node/polyfills/_http_common.ts
+++ b/ext/node/polyfills/_http_common.ts
@@ -1,6 +1,9 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
const tokenRegExp = /^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;
/**
* Verifies that the given val is a valid HTTP token