Skip to content

Commit

Permalink
URLs should follow a strict structure
Browse files Browse the repository at this point in the history
  • Loading branch information
YAMINIPRIYA16 committed Apr 18, 2018
1 parent d07ca84 commit 1906bdc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ seo:
errors:
regex: !!js/regexp /^https/

# URL should not contain special characters and underscores
# Alternatively, it should only contain lowercase letters, underscores and numbers
- type: url
errors:
regex: !!js/regexp /^https?:\/\/[a-z0-9.\-_]+\/[a-z0-9\-\/]*$/

og:
rules:
- type: dom
Expand Down

0 comments on commit 1906bdc

Please sign in to comment.