Update RapydScript

This commit is contained in:
Kovid Goyal 2018-01-23 16:17:24 +05:30
parent 41f45b0dc8
commit 61ab18b81a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -125,9 +125,12 @@ def _expand(groups, repl, group_name_map):
return '\\' + q
ans = ch = ''
while (ch = next()):
while True:
ch = next()
if ch is '\\':
ans += read_escape_sequence()
elif not ch:
break
else:
ans += ch
return ans