Skip to content

Commit

Permalink
Fix regex in testvoc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcriera committed Nov 16, 2024
1 parent 55ea99a commit 6f18887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/testvoc/generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ import re
from streamparser import parse, reading_to_string, known
from itertools import product
for line in sys.stdin:
line = re.sub("(?<!\\|>)\+", "\\+", line)
line = re.sub('(?<!\\\|>)\\\+', '\\\+', line)
units = list(parse(line, with_text=True))
exp = []
for unit in units:
Expand All @@ -228,7 +228,7 @@ from streamparser import parse, reading_to_string, known
import sys
import re
for line in sys.stdin:
line = re.sub("(?<!\\|>)\+", "\\+", line)
line = re.sub('(?<!\\\|>)\\\+', '\\\+', line)
for blank, lu in parse(line, with_text=True):
readings = {}
if lu.knownness == known:
Expand Down

0 comments on commit 6f18887

Please sign in to comment.