Skip to content

Commit

Permalink
Don't use a regexp where a simple str.endswith() will do.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 30, 2009
1 parent 172df8f commit c17a3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ try:
pastebind = preloadPastebins() #get the config from /etc/pastebin.d/
params = getParameters(website, pastebind, content, user, jabberid, version, format, parentpid, permatag, title, username, password) #Get the parameters array

if not re.search(".*/", website):
if not website.endswith("/"):
website += "/"

reLink = None
Expand Down

0 comments on commit c17a3a2

Please sign in to comment.