1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-28 17:39:57 +02:00

Remove unneeded check. (#961)

Even if the el.tagName is a span, it will fall through to the child
text node so the check is unneeded.
This commit is contained in:
Zach Schneider
2017-08-01 12:06:55 -04:00
committed by Ian Storm Taylor
parent 56fa2c4208
commit 78bb1508ac

View File

@@ -33,7 +33,7 @@ const TEXT_RULE = {
}
}
if (el.tagName == 'span' || el.nodeName == '#text') {
if (el.nodeName == '#text') {
if (el.value && el.value.match(/<!--.*?-->/)) return
return {