6
I'm looking for documentation describing Google Chrome's glob/wildcard/pattern syntax used in block/allow lists for content settings.
If you're using Chrome, these settings pages are accessible via urls like:
chrome://settings/content/javascript
chrome://settings/content/cookies
There are several other pages that use the same url matching syntax. When you click "Add", the form displays the example text, [*.]example.com
. The square brackets appear to be necessary when using the wildcard pattern, as omitting them results in the message, Not a valid web address
.
Official documentation or source code would be nice, but a plain old BNF is ideal.
I have found two related pages that describe url pattern matching in Chrome, but neither of them apply to this case. Please don't reference them unless it turns out that I've misunderstood their relevance (neither document the required square brackets):
I've already figured as much, but it seems like there should be much more to the syntax, or at least a definitive resource that's not on the help page for cookies, since this is used elsewhere. – stewSquared – 2019-06-06T21:57:27.403