zlin / wgetpaste

MIT License
34 stars 16 forks source link

Fallback location regex confusion fix #12

Closed nvinson closed 4 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.

Signed-off-by: Nicholas Vinson nvinson234@gmail.com Fixes issue #10

Cogitri commented 4 years ago

Thanks!