mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) updates from grist-core
This commit is contained in:
@@ -1029,7 +1029,7 @@ export function buildUrlId(parts: UrlIdParts): string {
|
||||
// may be in a docId (leaving just the hyphen, which is permitted). The limits
|
||||
// could be loosened, but without much benefit.
|
||||
const codedSnapshotId = encodeURIComponent(parts.snapshotId)
|
||||
.replace(/[_.!~*'()]/g, ch => `_${ch.charCodeAt(0).toString(16).toUpperCase()}`)
|
||||
.replace(/[_.!~*'()-]/g, ch => `_${ch.charCodeAt(0).toString(16).toUpperCase()}`)
|
||||
.replace(/%/g, '_');
|
||||
token = `${token}~v=${codedSnapshotId}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user