Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/guiguts/data/scannos/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@
"hint": "Find a word containing at least 5 consonants in a row"
},
{
"match": "(\\p{Letter}*\\.)(?=\"?\\n *\"?\\p{Lower}+)",
"replacement": ",\\1",
"match": "(\\p{Letter}*)\\.(?=\"?\\n *\"?(?![cfprx]/)\\p{Lower}+)",
"replacement": "\\1,",
"hint": "Find a period with the following line starting with a lower case character and change the period to a comma"
},
{
"match": "(?<!\\.\\.)(\\p{Letter}*\\.)(?= \\p{IsLower}+)",
"replacement": ",\\1",
"match": "(?<!\\.\\.)(\\p{Letter}*)\\.(?= \\p{IsLower}+)",
"replacement": "\\1,",
"hint": "Find a period followed by a space and a lower-case letter and replace it with a comma"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/guiguts/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def find_matching_paren(s: str, start: int) -> Optional[int]:
end = find_matching_paren(pattern, i)
if end == len(pattern) - 1:
pattern = pattern[:i] + "$"
break
break
else:
pattern = re.sub(r"\(\?<?[=!][^()]*\)$", "$", pattern)

Expand Down