Skip to content

Commit

Permalink
Fix yourpaste.net and paste2.org
Browse files Browse the repository at this point in the history
  • Loading branch information
stgraber committed Apr 11, 2010
1 parent 38801d9 commit 0b411a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pastebin.d/paste2.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ page = page
parent = parent

[defaults]
page = '/new-paste'
page = 'new-paste'
parent = 0
2 changes: 1 addition & 1 deletion pastebin.d/yourpaste.net.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ expire = 0
private = 0
remember = 0
page = '/paste'
regexp = '">http://yourpaste.net(.*)</a>'
regexp = '">http://yourpaste.net/(.*)</a>'
2 changes: 1 addition & 1 deletion pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ try:
if reLink == '(.*)':
print page.read().strip()
else:
print website + "/" + re.split(reLink, page.read())[1] #Print the result of the Regexp
print website + re.split(reLink, page.read())[1] #Print the result of the Regexp
else:
print page.url #Get the final page and show the ur
except KeyboardInterrupt:
Expand Down

0 comments on commit 0b411a9

Please sign in to comment.