Skip to content

Commit

Permalink
rule: 👀 reddit post, comments, subreddit & user
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Aug 2, 2022
1 parent a9cf527 commit 474ba0b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions rules/reddit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
www.reddit.com: &main
sanitize:
##### CAUTION: ORDER OF RULES MATTERS #####
# Comment under post
- pattern: ^\/(r|user)\/[\w-_]+\/comments\/\w+\/comment\/\w+
allowedParams:
- context
sanitizePath: true
# Post
- pattern: ^\/(r|user)\/[\w-_]+\/comments\/\w+
allowedParams: []
sanitizePath: true
# User or Subreddit
- pattern: ^\/(r|user)\/[\w\-_]+\/?$
allowedParams: []
sanitizePath: true
reddit.com: *main

0 comments on commit 474ba0b

Please sign in to comment.