(string: str)
| 115 | |
| 116 | |
| 117 | def unescapeAll(string: str) -> str: |
| 118 | def replacer_func(match: Match[str]) -> str: |
| 119 | escaped = match.group(1) |
| 120 | if escaped: |
| 121 | return escaped |
| 122 | entity = match.group(2) |
| 123 | return replaceEntityPattern(match.group(), entity) |
| 124 | |
| 125 | if "\\" not in string and "&" not in string: |
| 126 | return string |
| 127 | return UNESCAPE_ALL_RE.sub(replacer_func, string) |
| 128 | |
| 129 | |
| 130 | ESCAPABLE = r"""\\!"#$%&'()*+,./:;<=>?@\[\]^`{}|_~-""" |
no outgoing calls
no test coverage detected
searching dependent graphs…