Policy

Jira

PR

Removal of the label “new” on the old Policies

https://optimere.atlassian.net/browse/MON-4581

https://github.com/Monsido/frontend/pull/11174 - Released

Adding 3 new policies

  • Find empty tags

  • Find canonical values

  • Find email addresses

https://optimere.atlassian.net/browse/MON-4625

https://github.com/Monsido/frontend/pull/11185 - Released

Update policies with links - MS-319

Update Find emails not inside an anchor element policy

https://optimere.atlassian.net/browse/MON-4634 https://optimere.atlassian.net/browse/MS-1798

https://github.com/Monsido/frontend/pull/11202 - Released

  • Images that contain links

  • ALT tag that contain images

https://optimere.atlassian.net/browse/MS-1262

https://github.com/Monsido/frontend/pull/11282 - open PR

Remove policy Find emails not inside an anchor element

https://optimere.atlassian.net/browse/MON-5364

https://github.com/Monsido/frontend/pull/11259 - Closed (mistake)

https://github.com/Monsido/frontend/pull/11279 - open PR

Update policy Find canonical values - Search from page to HTML

https://optimere.atlassian.net/browse/MON-5523

https://github.com/Monsido/frontend/pull/11280 - open PR

Policies ideas

Regex

Test on https://new.monsido.com/16993

Find all headers and subheaders

<h[1-6][^>]*>(.*?)<\/h[1-6]>

Test passed (blue star)

Search for links on HTTP and not HTTPS

Already in template:
Search for pages with unsafe links
TASK: update naming

\bhttp://[^"\s]+

Test passed (blue star)

Regex to find web site names which does not follow http:// or https://

(?<!https:\/\/)(?<!http:\/\/)(www\.[\w-.]?[\w-]+?(\/[\w-]?)*?)((?=[^\w.\/-]+?)|$)+

Modified to:
(?<!https:\/\/)(?<!http:\/\/)www\.[\w-]+(?:\.[\w-]+)(?:\/[\w-]+)(?:\?[\w-]+=[\w-]+(?:&[\w-]+=[\w-]+)*)?(?:#[\w-]+)?

Test Failed (blue star)

Can give some false positives

HTML meta tag

<meta\s+name="([^"]+)"\s+content="([^"]+)">

Test passed (blue star)

Missing title rule

<title>\s*<\/title>

Test passed (blue star)

Attachments: