From bd805111c8fa31e7cfce010699209467736e75d5 Mon Sep 17 00:00:00 2001 From: TZ-zzz Date: Fri, 14 Feb 2025 15:54:34 +0800 Subject: [PATCH] Fix the negetive value extraction bug --- data/strimzi-kafka-operator/v0-45-0/oracle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/strimzi-kafka-operator/v0-45-0/oracle.py b/data/strimzi-kafka-operator/v0-45-0/oracle.py index cf32b75e2..825e51a74 100644 --- a/data/strimzi-kafka-operator/v0-45-0/oracle.py +++ b/data/strimzi-kafka-operator/v0-45-0/oracle.py @@ -68,7 +68,7 @@ def check( value = True elif value == "false": value = False - elif re.match(r"^\d+$", value) or re.match(r"^\d+\.\d+$", value): + elif re.match(r"^-?\d+$", value) or re.match(r"^-?\d+\.\d+$", value): value = float(value) runtime_config[name] = value