Skip to content

Subreddit tokens #5

@kris927b

Description

@kris927b

Subreddit

I would like to suggest that you implement a regex to handle subreddit handles.
It would be exactly similar to the user handle but uses r instead of u.
I have done it in my local version due to necessity, and that was rather simple due to the very elegant code you have written! 💯

This regex works for me:

r"(?:\/?r\/\w+)"

I can create a pull request if that helps your workflow. 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions