Skip to content

Commit bc5bda3

Browse files
authored
Merge pull request #431 from joebonrichie/regex-tweak
boulder/draft/metadata: Match underscores in basic first capture group
2 parents 9fd209b + 5e11319 commit bc5bda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boulder/src/draft/metadata/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use super::Source;
1212
pub fn source(upstream: &Url) -> Option<Source> {
1313
let filename = util::uri_file_name(upstream);
1414

15-
let regex = Regex::new(r"^([a-zA-Z0-9-]+)-([a-zA-Z0-9._-]+)\.(zip|tar|sh|bin\.*)").ok()?;
15+
let regex = Regex::new(r"^([a-zA-Z0-9_-]+)-([a-zA-Z0-9._-]+)\.(zip|tar|sh|bin\.*)").ok()?;
1616
let captures = regex.captures(filename)?;
1717

1818
let name = captures.get(1)?.as_str().to_owned();

0 commit comments

Comments
 (0)