praw-dev / praw

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.
http://praw.readthedocs.io/
BSD 2-Clause "Simplified" License
3.4k stars 453 forks source link

Profile pages match `submission.id_from_url` #2015

Closed thomwiggers closed 2 months ago

thomwiggers commented 4 months ago

Describe the Bug

Trying to parse:

https://reddit.com/u/someuser in Submission.id_from_url results in getting the id someuser.

Desired Result

should be InvalidURL.

Code to reproduce the bug

praw.models.Submission.id_from_url("https://reddit.com/u/someuser")
praw.models.Submission.id_from_url("https://reddit.com/user/someuser")

My code does not include sensitive credentials

Relevant Logs

N/A

This code has previously worked as intended

I'm not sure, I haven't used this code before.

Operating System/Environment

N/A

Python Version

3.12

PRAW Version

7.7.1

Links, references, and/or additional comments?

No response

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

Remove the Stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stale for 30 days with no activity.