libreddit/src
gmnsii 9e434e7db6
Search - add support for raw reddit links (#663)
* Search - add support for raw reddit links

If a search query starts with 'https://www.reddit.com/' or 'https://old.reddit.com/',
this prefix will be truncated and the query will be processed normally.
For example, a search query 'https://www.reddit.com/r/rust' will redirect to
r/rust.

* Search - support a wider variety of reddit links.

Add once cell dependency for static regex support (avoid compiling the
same regex multiple times).
All search queries are now matched against a regex (provided by @Daniel-Valentine)
that determines if it is a reddit link. If it is, the prefix specifying
the reddit instance will be truncated from the query that will then be
processed normally.
For example, the query 'https://www.reddit.com/r/rust' will be treated
the same way as the query 'r/rust'.
2022-12-31 20:57:42 -07:00
..
client.rs List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00
duplicates.rs List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00
main.rs List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00
post.rs List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00
search.rs Search - add support for raw reddit links (#663) 2022-12-31 20:57:42 -07:00
server.rs Cache result of `server::determine_compressor`. 2022-12-04 17:56:02 -07:00
settings.rs Blur NSFW posts. 2022-11-08 09:01:12 -07:00
subreddit.rs Bugfix: 'all posts are hidden because NSFW' when no posts where found (#666) 2022-12-31 19:11:59 -07:00
user.rs Bugfix: 'all posts are hidden because NSFW' when no posts where found (#666) 2022-12-31 19:11:59 -07:00
utils.rs List post duplicates (resolves #574). 2022-12-03 01:08:36 -07:00