Possible documentation mistake (match patterns)

I’m writing a function that converts WebExtension match-patterns into regular expressions. For the unit tests I took the example from the <a href=https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Match_patterns">MDN documentation.

The very last example says that “file:///blah/*” should match “file://blah/bleh” (notice: two slashes).

Is this correct, or is it a typo in the documentation?

1 Like

I think it’s a typo, and tests using the browser console seem to confirm that. I just updated the page. Thanks for noticing!

1 Like