mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: support more attributes for early hint link
PR-URL: https://github.com/nodejs/node/pull/44874 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
267a03eb37
commit
2649aab603
2 changed files with 14 additions and 1 deletions
|
@ -441,7 +441,7 @@ function validateUnion(value, name, union) {
|
|||
}
|
||||
}
|
||||
|
||||
const linkValueRegExp = /^(?:<[^>]*>;)\s*(?:rel=(")?[^;"]*\1;?)\s*(?:(?:as|anchor|title)=(")?[^;"]*\2)?$/;
|
||||
const linkValueRegExp = /^(?:<[^>]*>;)\s*(?:rel=(")?[^;"]*\1;?)\s*(?:(?:as|anchor|title|crossorigin|disabled|fetchpriority|rel|referrerpolicy)=(")?[^;"]*\2)?$/;
|
||||
|
||||
/**
|
||||
* @param {any} value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue