修复一处正则笔误
parent
1c7f63fc95
commit
bd78a29db2
|
@ -500,7 +500,7 @@ export default class Neditor {
|
|||
'<a href="$1">'
|
||||
)
|
||||
.replace(
|
||||
/<img[^>]*? href\s?=\s?["']?([^"']*)["']?[^>]*?>/g,
|
||||
/<img[^>]*? src\s?=\s?["']?([^"']*)["']?[^>]*?>/g,
|
||||
'<img src="$1">'
|
||||
)
|
||||
.replace(/<(?!a|img)([\w\-]+)[^>]*>/g, '<$1>')
|
||||
|
|
Reference in New Issue