Initial commit - fix problems & refactor code
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user