From ed965bcb746bf96b1e8de56e47af41e165212d94 Mon Sep 17 00:00:00 2001 From: Romeo Disca Date: Fri, 25 Nov 2022 11:02:31 +0100 Subject: [PATCH] making revision number for parsing of godot version optional --- godot-codegen/src/godot_version.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godot-codegen/src/godot_version.rs b/godot-codegen/src/godot_version.rs index d4654514a..2cc828130 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)[0-9]*\.(?:(?: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")?;