In https://wicg.github.io/private-network-access/#permission-prompt, the spec currently says:
Private-Network-Access-Name should be a valid name which is a string that matches the [ECMAScript] regexp /^[a-z0-9_-.]+$/. 248 is the maximum number of UTF-8 code units in the name.
The regex /^[a-z0-9_-.]+$/ suggests only lowercase letters, digits, ., _, and - are allowed, so no spaces or "special characters" or non-English alphabets. Elsewhere in the spec though, examples do not follow this restriction.
- The example immediately above contains spaces:
Private-Network-Access-Name: "My Smart Toothbrush" (i'm not sure the quotes here are intended to be part of the value or to delimit the value)
- The Mixed Content section lists an example with an apostrophe:
Private-Network-Access-Name: userA’s MegaCorp device
What should we make of this?
#119 added this restriction. Is it just the case that examples were not updated to match this new restriction? Should I open a PR to update the examples? 😄
In https://wicg.github.io/private-network-access/#permission-prompt, the spec currently says:
The regex
/^[a-z0-9_-.]+$/suggests only lowercase letters, digits,.,_, and-are allowed, so no spaces or "special characters" or non-English alphabets. Elsewhere in the spec though, examples do not follow this restriction.Private-Network-Access-Name: "My Smart Toothbrush"(i'm not sure the quotes here are intended to be part of the value or to delimit the value)Private-Network-Access-Name: userA’s MegaCorp deviceWhat should we make of this?
#119 added this restriction. Is it just the case that examples were not updated to match this new restriction? Should I open a PR to update the examples? 😄