Skip to content

Commit

Permalink
[find] Fix bug that prevented sed'ing to nothing
Browse files Browse the repository at this point in the history
Close issue sopel-irc#195
  • Loading branch information
embolalia committed Mar 2, 2013
1 parent 9c0bb04 commit c0493ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def findandreplace(willie, trigger):
#slash is ignored, you can escape slashes with backslashes, and if you want to
#search for an actual backslash followed by an actual slash, you're shit out of
#luck because this is the fucking regex of death as it is.
findandreplace.rule = r'(?:(\S+)[:,]\s+)?s/((?:\\/|[^/])+)/((?:\\/|[^/])+)(?:/(\S+))?'
findandreplace.rule = r'(?:(\S+)[:,]\s+)?s/((?:\\/|[^/])+)/((?:\\/|[^/])*)(?:/(\S+))?'
findandreplace.priority = 'high'


0 comments on commit c0493ab

Please sign in to comment.