Function isValid for URLs does not validate SharePoint/Office365 links properly

Description

Issue

The following function returns false, but should return true:

Details

SharePoint/Office365 allows users to share items via URL. These generated URLs contain a simple combination of characters that are returned invalid by isValid. Example URL:

https://companyname.sharepoint.com/:f:/s/site-collection-name/subsite-name/Ds10TaJKAKhMp1hE0B_42WcBVhTHD3EQJKWhGprKFP3vpQ?e=14ohmf

In this example, the :f:, which denotes a shared folder, is considered invalid. Other example designations used by SharePoint:

  • :w: for Word

  • :x: for Excel

  • :p: for PowerPoint

  • :b: for PDF

Environment

None

Assignee

Michael Offner

Reporter

Keith Setliff

Priority

New

Labels

None

Fix versions

None

Affects versions

Configure