Skip to content

Relax Regex Validation on Protocols #1994

Closed

Description

@Trenly

Description of the new feature / enhancement

The current schema does not allow for protocols to start with a number

"Protocols": {
"type": [ "array", "null" ],
"items": {
"type": "string",
"pattern": "^[a-z][-a-z0-9\\.\\+]*$",
"maxLength": 2048
},
"maxItems": 16,
"uniqueItems": true,
"description": "List of protocols the package provides a handler for"
},

This causes issues when Publishers implement their own protocols or handlers such as 360chromexurl

Proposed technical implementation details

The regex should be relaxed to allow for custom protocols and handlers which start with numbers or removed entirely

Activity

  1. added
    Issue-Feature
    on Mar 2, 2022
  2. ghost added
    Needs-Triage
    on Mar 2, 2022
  3. added
    Area-Manifest
    and removed
    Needs-Triage
    on Mar 2, 2022
  4. Trenly commented on Aug 3, 2022

    @Trenly
    ContributorAuthor

    Resolved in #2028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-ManifestIssue-Feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions