File size: 272 Bytes
dc4e6da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | __PREFIX = "&?ve"
def get_visual_element_id(i: int) -> str:
return f"{__PREFIX}{i}"
def is_visual_element_id(s: str) -> bool:
if s.startswith(__PREFIX):
s = s.replace(__PREFIX, "")
return s.isdigit()
else:
return False
|