|
|
|
|
|
|
|
|
str: The text with leading punctuation or symbols removed. |
|
|
str: The text with leading punctuation or symbols removed. |
|
|
""" |
|
|
""" |
|
|
# Match Unicode ranges for punctuation and symbols |
|
|
# Match Unicode ranges for punctuation and symbols |
|
|
pattern = r"^[\u2000-\u206F\u2E00-\u2E7F\u3000-\u303F!\"#$%&'()*+,\-./:;<=>?@\[\]^_`{|}~]+" |
|
|
|
|
|
|
|
|
# FIXME this pattern is confused quick fix for #11868 maybe refactor it later |
|
|
|
|
|
pattern = r"^[\u2000-\u206F\u2E00-\u2E7F\u3000-\u303F!\"#$%&'()*+,./:;<=>?@^_`~]+" |
|
|
return re.sub(pattern, "", text) |
|
|
return re.sub(pattern, "", text) |