zlin / wgetpaste

MIT License
34 stars 16 forks source link

Fallback location regex confusion fix #11

Closed nvinson closed 5 years ago

nvinson commented 5 years ago

The fallback location regex can get confused if the input data contains URLs, and the confusion will cause wgetpaste to print the wrong link to the paste.

Updated the regex so it finds the last URL that contains the service URL. wgetpaste can still get confused after this commit, but this commit should reduce the likelihood.

Fixes issue #10

nvinson commented 5 years ago

Pull request wasn't properly generated. Will recreate.