Skip to content

Commit 4a7bd16

Browse files
authored
fix: update MariaDB version regex to make the version hack optional
Closes #124
1 parent f724a4e commit 4a7bd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packets/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use self::session_state_change::SessionStateChange;
4545

4646
lazy_static::lazy_static! {
4747
static ref MARIADB_VERSION_RE: Regex =
48-
Regex::new(r"^5.5.5-(\d{1,2})\.(\d{1,2})\.(\d{1,3})-MariaDB").unwrap();
48+
Regex::new(r"^(?:5.5.5-)?(\d{1,2})\.(\d{1,2})\.(\d{1,3})-MariaDB").unwrap();
4949
static ref VERSION_RE: Regex = Regex::new(r"^(\d{1,2})\.(\d{1,2})\.(\d{1,3})(.*)").unwrap();
5050
}
5151

0 commit comments

Comments
 (0)