Skip to content

Commit

Permalink
fixed regex parsing for godot4 beta4 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinThierauf authored Nov 6, 2022
1 parent 91e9c0b commit 2d9f66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godot-codegen/src/godot_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct GodotVersion {

pub fn parse_godot_version(version_str: &str) -> Result<GodotVersion, Box<dyn Error>> {
let regex = Regex::new(
r#"(\d+)\.(\d+)(?:\.(\d+))?\.(alpha|beta|dev|stable)\.(?:(?:official|custom_build)\.([a-f0-9]+)|official)"#,
r#"(\d+)\.(\d+)(?:\.(\d+))?\.(alpha|beta|dev|stable)[0-9]*\.(?:(?:official|custom_build)\.([a-f0-9]+)|official)"#,
)?;

let caps = regex.captures(version_str).ok_or("Regex capture failed")?;
Expand Down

0 comments on commit 2d9f66b

Please sign in to comment.