diff --git a/godot-codegen/src/godot_version.rs b/godot-codegen/src/godot_version.rs index 5530fb076..d4654514a 100644 --- a/godot-codegen/src/godot_version.rs +++ b/godot-codegen/src/godot_version.rs @@ -28,7 +28,7 @@ pub struct GodotVersion { pub fn parse_godot_version(version_str: &str) -> Result> { 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")?;