Files

10 lines
281 B
Python

from core.environment import IGNORE
def cleanString(s: str, ignore: str = IGNORE) -> str:
s = s.lstrip(ignore)
while s and s[0] == ';':
line_end: int = s.find('\n')
if line_end < 0:
return ''
s = s[line_end:].lstrip(ignore)
return s