Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
3 deletions.
-
+2
−3
topaz/utils/regexp.py
|
@@ -1258,14 +1258,13 @@ def _parse_property(source, info, positive, in_set): |
|
|
|
|
|
def _parse_property_name(source): |
|
|
b = StringBuilder(5) |
|
|
here = source.pos |
|
|
while True: |
|
|
pos2 = source.pos |
|
|
here = source.pos |
|
|
ch = source.get() |
|
|
if ch.isalnum(): |
|
|
b.append(ch) |
|
|
else: |
|
|
source.pos = pos2 |
|
|
source.pos = here |
|
|
break |
|
|
name = b.build() |
|
|
return name, name |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.