mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-30 11:20:24 +00:00
formatting
This commit is contained in:
parent
ba1eeed734
commit
6105ef02c9
1 changed files with 3 additions and 4 deletions
|
|
@ -46,10 +46,9 @@ impl Quirks {
|
|||
Self { quirks }
|
||||
}
|
||||
|
||||
/// Apply quirks to a given request.
|
||||
/// Only the first quirk matching regex pattern will be applied.
|
||||
/// The rest will be discarded for simplicity reasons.
|
||||
/// This limitation might be lifted in the future.
|
||||
/// Apply quirks to a given request. Only the first quirk regex pattern
|
||||
/// matching the URL will be applied. The rest will be discarded for
|
||||
/// simplicity reasons. This limitation might be lifted in the future.
|
||||
pub fn apply(&self, request: Request) -> Request {
|
||||
for quirk in &self.quirks {
|
||||
if quirk.pattern.is_match(request.url().as_str()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue