Skip to content

Commit

Permalink
[desk-tool] Fix issue with path segments getting stripped out of from…
Browse files Browse the repository at this point in the history
… ids containing `.` (#1600)

This fixes a regression introduced in v0.144.0 that broke editing of a document that had an `_id` that included a dot character (`.`)
  • Loading branch information
bjoerge authored and rexxars committed Nov 19, 2019
1 parent 2ac18f7 commit c5183f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/desk-tool/src/utils/parsePanesSegment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable import/prefer-default-export */
const panePattern = /^([a-z0-9_-]+),?({.*?})?(?:(;|$))/i
const panePattern = /^([.a-z0-9_-]+),?({.*?})?(?:(;|$))/i

export function parsePanesSegment(str) {
const chunks = []
Expand Down

0 comments on commit c5183f6

Please sign in to comment.