1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 12:14:14 +02:00
e0978a31e9 (commitcomment-28060594)
This commit is contained in:
vilicvane
2018-03-22 05:09:04 +08:00
committed by Ian Storm Taylor
parent edb7c3bd3c
commit 44d8021921

View File

@@ -4,7 +4,7 @@
* @type {RegExp}
*/
const PARSER = /^(\w+)(?::(\d+))?$/
const PARSER = /^([\w-]+)(?::(\d+))?$/
/**
* Parse an offset key `string`.