1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-26 16:44:22 +02:00

Fixes #817; fragment matcher regex (#992)

This commit is contained in:
Dan Burzo
2017-08-15 20:39:46 +03:00
committed by Ian Storm Taylor
parent ace2144e75
commit aafdc4a224

View File

@@ -8,7 +8,7 @@ import TRANSFER_TYPES from '../constants/transfer-types'
* @type {RegExp}
*/
const FRAGMENT_MATCHER = / data-slate-fragment="([^\s]+)"/
const FRAGMENT_MATCHER = / data-slate-fragment="([^\s"]+)"/
/**
* Get the data and type from a native data `transfer`.