8000 Link Check Missing Links · Issue #8 · LogRhythm-Labs/PIE · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Link Check Missing Links #8
Open
@RyanGallant

Description

@RyanGallant

Link check misses any link not contained within triangle brackets (< and >). Recommend changing to regex check instead, as shown below.

$regex = 'https?:\/\/([\w_-]+((\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?'
foreach ($link in $getLinks) {
                        $link = [regex]::Match($link,$regex).Groups[0].Value
...
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0