mle 0.28.0

The markup link extractor (mle) extracts links from markup files (Markdown and HTML).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-FileCopyrightText: 2022 Robin Vobruba <hoijui.quaero@gmail.com>
// SPDX-FileCopyrightText: 2020 Armin Becher <becherarmin@gmail.com>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

use wildmatch::WildMatch;

/// Parses the argument into a [`WildMatch`].
///
/// # Errors
///
/// If the argument is not a valid link glob.
pub fn parse(link_glob: &str) -> Result<WildMatch, String> {
    Ok(WildMatch::new(link_glob))
}