]> git.pld-linux.org Git - packages/firefox.git/blame - geckodriver-regex.patch
unbreak geckodriver by avoiding perl class
[packages/firefox.git] / geckodriver-regex.patch
CommitLineData
f1e03beb
JP
1--- firefox-78.0/testing/geckodriver/src/capabilities.rs.orig 2020-07-01 11:46:43.489401648 +0200
2+++ firefox-78.0/testing/geckodriver/src/capabilities.rs 2020-07-01 11:47:03.525900589 +0200
3@@ -79,7 +79,7 @@
4
5 fn version_from_binary(&self, binary: &PathBuf) -> Option<String> {
6 let version_regexp =
7- Regex::new(r#"\d+\.\d+(?:[a-z]\d+)?"#).expect("Error parsing version regexp");
8+ Regex::new(r#"[0-9]+\.[0-9]+(?:[a-z][0-9]+)?"#).expect("Error parsing version regexp");
9 let output = Command::new(binary)
10 .args(&["-version"])
11 .stdout(Stdio::piped())
This page took 0.023911 seconds and 4 git commands to generate.