diff --git a/source/BUG/strings.py b/source/BUG/strings.py index 5cdfb0f..c98425b 100644 --- a/source/BUG/strings.py +++ b/source/BUG/strings.py @@ -106,7 +106,7 @@ def substring_before(s: str, sub: str) -> str: """ BUG034: substring_before should return the substring before the first occurrence of sub, not after it. """ - result = s.split(sub)[1] + result = s.split(sub)[0] return result