mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
e568ddf996
Fix bug in regular expression and make the regular expression more strict. In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and not `/[\t\s]/`. For that, the backslash needs to be escaped in the string. Futhermore, `\t` is the tab character and is included in the special regexp value `\s` so is unnecessary. That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but there's no point in matching 0 or more space characters followed by 0 or one semi-colons as that will match no matter what follows `value`. To make it more strict, require one of space, semicolon, or end-of-string after value. |
||
---|---|---|
.. | ||
01_fetch_util.js | ||
03_dom_iterable.js | ||
11_streams.js | ||
20_headers.js | ||
26_fetch.js | ||
Cargo.toml | ||
lib.deno_fetch.d.ts | ||
lib.rs | ||
README.md |
This crate provides the web standard fetch API to deno_core
.