diff --git a/srunner/tools/openscenario_parser.py b/srunner/tools/openscenario_parser.py index a4437b5e4..d28ff6d7f 100644 --- a/srunner/tools/openscenario_parser.py +++ b/srunner/tools/openscenario_parser.py @@ -105,7 +105,7 @@ def is_literal(self) -> bool: """ Returns: True when text is a literal/number """ - return self._is_matching(pattern=r"(-)?\d+(\.\d*)?") + return self._is_matching(pattern=r"(-)?\d+(\.\d*)?(e[+-]\d*)?") def is_parameter(self) -> bool: """