diff --git a/source/BUG/strings.py b/source/BUG/strings.py index 5cdfb0f..30650e3 100644 --- a/source/BUG/strings.py +++ b/source/BUG/strings.py @@ -122,7 +122,8 @@ def strip_non_alphanumeric(s: str) -> str: """ BUG036: strip_non_alphanumeric should remove all non-alphanumeric characters, not just leading and trailing ones. """ - result = s.strip() + import re + result = re.sub(r'\W+', '', s) return result