refactoring
This commit is contained in:
@@ -15,7 +15,9 @@ export default function (doc: Node): DecorationSet {
|
||||
return
|
||||
}
|
||||
|
||||
[...node.text.matchAll(hexColor)].forEach(match => {
|
||||
Array
|
||||
.from(node.text.matchAll(hexColor))
|
||||
.forEach(match => {
|
||||
const index = match.index || 0
|
||||
|
||||
results.push({
|
||||
|
||||
Reference in New Issue
Block a user