This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复一处正则笔误

old
宇天 2019-12-12 12:10:15 +08:00
parent 1c7f63fc95
commit bd78a29db2
1 changed files with 1 additions and 1 deletions

View File

@ -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>')