Initial commit - fix problems & refactor code

This commit is contained in:
2025-12-22 19:10:46 +03:00
commit ff36917cb5
39 changed files with 1499 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from core.environment import IGNORE, MEANINGFUL
import re
def findPrefix(s: str, separators: str = IGNORE + MEANINGFUL) -> str:
pattern = rf'^[^{separators}]*'
match = re.match(pattern, s)
if match:
return match.group(0)
return ''