Skip to content

Commit 5c974c7

Browse files
Exireldgw
andauthored
Apply suggestions from code review
Co-authored-by: dgw <[email protected]>
1 parent e4a2555 commit 5c974c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sopel/modules/find.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ def kick_cleanup(bot, trigger):
137137
[:,]\s+)? # Followed by optional colon/comma and whitespace
138138
s(?P<sep>\|) # The literal s and a separator | as group 2
139139
(?P<old> # Group 3 is the thing to find
140-
(?:\\\||[^|])+ # One or more non-slashes or escaped slashes
140+
(?:\\\||[^|])+ # One or more non-pipe or escaped pipe
141141
)
142142
\| # The separator again
143143
(?P<new> # Group 4 is what to replace with
144-
(?:\\\||[^|])* # One or more that isn't the separator
144+
(?:\\\||[^|])* # One or more non-pipe or escaped pipe
145145
)
146146
(?:| # Optional separator followed by group 5 (flags)
147147
(?P<flags>\S+)

0 commit comments

Comments
 (0)