Editing Module:RedditUtil
From Rest of What I Know
Revision as of 01:45, 15 September 2025 by Roshan (talk | contribs) (Created page with "local p = {} local function trim(s) if type(s) ~= 'string' then return nil end return (s:gsub('^%s+', ''):gsub('%s+$', '')) end local function parse_from_url(url) if type(url) ~= 'string' then return {} end local u = url -- normalize common host variants -- supports old.reddit.com / www.reddit.com / reddit.com local sub, id = u:match('^https?://[^/]*reddit%.com/r/([A-Za-z0-9_]+)/comments/([A-Za-z0-9]+)/') if sub and id then return {subreddit = sub,...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from "https://wiki.roshangeorge.dev/w/Module:RedditUtil"
