Giter Club home page Giter Club logo

Comments (5)

pmeenan avatar pmeenan commented on September 7, 2024

AFAIK, MatchPattern() isn't spec'd anywhere and the benefit would be mostly for Chromium implementation. The * wildcard with no escaping is easy enough to describe and implement and should handle all of the use cases that we have come up with. Not including escaping makes it easier for the humans who will likely be specifying the paths as well.

There's a chance we haven't come across a use case where a single-character wildcard is necessary.

I'd be more inclined to support filesystem path-like wildcards if there was an existing RFC or precedence in other standards for doing it since we're already doing some level of path-relative expansion but I haven't been able to find any.

from compression-dictionary-transport.

horo-t avatar horo-t commented on September 7, 2024

Do you think using the pattern of URLPattern API could be another option?

URLPattern API supports regular expression, but regular expression is too powerful.
The new proposal of static routing API for Service Worker (explainer) is using URLPattern, and the current proposal is prohibiting using regexp type tokens. I think we should also prohibit using regexp type tokens for compression dictionary transport.

+CC: @yoshisatoyanagisawa @wanderview @sisidovski

from compression-dictionary-transport.

yoshisatoyanagisawa avatar yoshisatoyanagisawa commented on September 7, 2024

For preventing regexp, we followed how URLPattern is used for Tabbed mode home tab scope. (crbug.com/1381374)

I am not sure URLPattern's wildcard is alined with POSIX.2 2.13 Pattern Matching Notation, which might be used for path name expansion in Unix shell.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06

from compression-dictionary-transport.

pmeenan avatar pmeenan commented on September 7, 2024

I filed an issue with URLPattern to see if it would make sense to split out a good chunk of the spec into a RFC. As it stands right now, trying to pull the existing URLPattern spec language into the compression dictionary ID would be way more complicated than it was worth but if there was a RFC-standardized way to specify the patterns it would be trivial.

I don't know that we need most of the functionality that it provides for this use case but the flexibility won't hurt either (as long as clients implementing the pattern matching support URLPattern already).

from compression-dictionary-transport.

domenic avatar domenic commented on September 7, 2024

Oh, I just filed #48 about using URLPattern. Please do that! As noted in whatwg/urlpattern#180, the format of the spec is not an issue.

from compression-dictionary-transport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.