Skip to content

Fix isRootRelative for protocol-relative URLs

Mark Florian requested to merge fix-root-relative-util into master

What does this MR do?

Fix isRootRelative for protocol-relative URLs

Protocol-relative URLs, e.g., //foo.test, are not root-relative. This fixes isRootRelative to return false when given a protocol-relative URL using a negative lookahead assertion for a second '/' character.

Screenshots (strongly suggested)

n/a

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Mark Florian

Merge request reports

Loading