Fix db-migration-period default (#4441)

* Fix db-migration-period default

* Fix version regex
This commit is contained in:
Michael Sproul
2023-06-30 10:29:34 +10:00
committed by GitHub
parent 6954de6afd
commit 160bbde8a2
2 changed files with 3 additions and 4 deletions

View File

@@ -37,9 +37,8 @@ mod test {
#[test]
fn version_formatting() {
let re =
Regex::new(r"^Lighthouse/v[0-9]+\.[0-9]+\.[0-9]+(-tree.[0-9])?(-[[:xdigit:]]{7})?\+?$")
.unwrap();
let re = Regex::new(r"^Lighthouse/v[0-9]+\.[0-9]+\.[0-9]+(-exp)?(-[[:xdigit:]]{7})?\+?$")
.unwrap();
assert!(
re.is_match(VERSION),
"version doesn't match regex: {}",