SWDEV-123456 - handle checkboxes with spaces (#464)
This commit is contained in:
committed by
GitHub
parent
54a2e943d7
commit
de27ba3f02
@@ -7,7 +7,7 @@ def is_checkbox(line: str) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def is_checked(line: str) -> bool:
|
def is_checked(line: str) -> bool:
|
||||||
return bool(re.match(r"^\s*-\s*\[[xX]\]\s*.+", line))
|
return bool(re.match(r"^\s*-\s*\[\s*[xX]\s*\]\s*.+", line))
|
||||||
|
|
||||||
|
|
||||||
def is_comment(line: str) -> bool:
|
def is_comment(line: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user