Open hugo306 opened 3 years ago
I second this...
We're finding the filenames unreasonably restrictive as well. This really hurts the ergonomics of the API, but I assume this will be fixed before this is shipped without a flag.
At CouchDB, we went through acceptable characters across file systems, as we are mapping database names to file names directly and our acceptable regex is ^[a-z][a-z0-9_$()+/-]*$
(c.f. https://docs.couchdb.org/en/stable/api/database/common.html#put--db). We’ve gotten very few complaints about this, so this might be a workable middle ground.
Thank you, that's great to know! Your regex seems pretty similar to what we're doing, except for allowing 6 additional special characters.
Base64url is excluded because of case insensitivity, and even canonical GUID are excluded because of the lack of -
0-9A-Za-z_- is about the lowest common denominator between File System Access API, Cache API, ServiceWorker Request, IndexedDB keys, and most importantly for browsers: URLs