From 9f387830a037fffd7b4dc9d680ddb7e4ac19e767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordan=20Bri=C3=A8re?= Date: Thu, 12 Jan 2023 19:04:53 -0500 Subject: [PATCH] Fixed a regression introduced into https://github.com/Source-Python-Dev-Team/Source.Python/commit/eff06dbbcc6d5feaa30af316cfc94c5664c53b99 where typed commands were not properly tokenized when using tabs instead of spaces. --- addons/source-python/packages/source-python/core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/source-python/packages/source-python/core/__init__.py b/addons/source-python/packages/source-python/core/__init__.py index 460785e22..2522e0c55 100755 --- a/addons/source-python/packages/source-python/core/__init__.py +++ b/addons/source-python/packages/source-python/core/__init__.py @@ -184,7 +184,7 @@ def __init__(self, infile, *args, **kwargs): class Tokenize(list): """Parses the arguments from the given string.""" - _pattern = re_compile('"[^"]*"|[^ ]+') + _pattern = re_compile(r'"[^"]*"|[^ \t]+') def __init__(self, string, comment_prefix=None): """Splits the arguments from the given string."""