Crate webextension_pattern

Source
Expand description

githubcrates-iodocs-rs


webextension_pattern implements support for matching URLs with a powerful and intuitive Pattern. It’s simpler than regular expressions, and specifically tailored to URL matching. It’s the format used by Mozilla’s WebExtensions for matching URLs, as well as Google Chrome, and you can find their documentation here:

This crate aims to be compatible with Mozilla’s implementation, specifically.

Additional documentation on the format itself can be found in Pattern’s documentation.

Structs§

Pattern
A parsed WebExtensions pattern

Enums§

Error
Error type for parsing a Pattern