diff --git a/srunner/tools/openscenario_parser.py b/srunner/tools/openscenario_parser.py index adc0f9ed7..71dc829ae 100644 --- a/srunner/tools/openscenario_parser.py +++ b/srunner/tools/openscenario_parser.py @@ -102,7 +102,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*)?") or self._is_matching(pattern=r"[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?") def is_parameter(self) -> bool: """