From 9a8bf9d1dc625f09fd6877022bef200cc5ae97c8 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 12 Apr 2021 09:28:58 +0200 Subject: [PATCH] Fix wrongly generated class names --- compiler/errors/compiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/errors/compiler.py b/compiler/errors/compiler.py index d5cccaf4..feda9231 100644 --- a/compiler/errors/compiler.py +++ b/compiler/errors/compiler.py @@ -96,6 +96,7 @@ def start(): sub_class = caml(re.sub(r"_X", "_", error_id)) sub_class = re.sub(r"^2", "Two", sub_class) + sub_class = re.sub(r" ", "", sub_class) f_all.write(" \"{}\": \"{}\",\n".format(error_id, sub_class))