Skip to content

Commit

Permalink
Adding line length limiter to findandreplace on request.
Browse files Browse the repository at this point in the history
Code written by TJ- on irc.freenode.net. Credit where credit is due, man. ;)

Signed-off-by: Dimitri Molenaars <[email protected]>
  • Loading branch information
tyrope committed Nov 12, 2012
1 parent ba88b84 commit 67a7335
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 @@ -104,7 +104,7 @@ def findandreplace(willie, trigger):
line = line[8:]
else:
me = False
new_phrase = repl(line)
new_phrase = repl(line) if len(line) < 88 else ''
if new_phrase != line: # we are done
break

Expand Down

0 comments on commit 67a7335

Please sign in to comment.