Skip to content

Conversation

@dgw
Copy link
Member

@dgw dgw commented Nov 29, 2021

Description

Reddit will accept /r/subreddit/comments/id, /comments/id, or even just /id... The variations never end.

Follow-up to #2208. After merging I found some further tweaks that hadn't been pushed up yet, probably because of #2210. Could use input from @half-duplex, the person who pointed out these additional URL formats' existence.

While preparing this patch so it wouldn't conflict with the prior merge I noticed that my newly created test file for reddit used Windows line endings, because of course it did (probably a bad editor default on my newer laptop). Review 2bad1e1 on its own for the meaningful changes; 7af3889 contains only whitespace (correcting bad line endings).

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

dgw added 2 commits November 29, 2021 01:19
Reddit will accept /r/subreddit/comments/id, /comments/id, or even just
/id... The variations never end.
@dgw dgw added the Tweak label Nov 29, 2021
@dgw dgw added this to the 7.1.7 milestone Nov 29, 2021
@dgw dgw requested a review from a team November 29, 2021 07:30
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the tests. I just want more.

@dgw dgw requested a review from Exirel December 6, 2021 07:34
@dgw dgw force-pushed the reddit-bare-comments branch from 7a8be4e to 7aeed0c Compare December 6, 2021 07:38
@dgw dgw merged commit 831f797 into master Dec 6, 2021
@dgw dgw deleted the reddit-bare-comments branch December 6, 2021 07:52
dgw added a commit that referenced this pull request Dec 6, 2021
reddit, test: even more of the comments link format is optional
dgw added a commit that referenced this pull request Dec 11, 2021
reddit, test: even more of the comments link format is optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants