mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: markdown: 使用非贪婪匹配
This commit is contained in:
1 parent
d53b5d5a32
commit
6e06a27f2f
2 files changed
+2
-2
No files matched your search
@@ -30,7 +30,7 @@ function mfrParser(url) {
|
||||
const match = url.match(mfrRegex);
|
||||
return match ? match[1] : url;
|
||||
}
|
||||
const EMBED_REGEX = /@\[([a-zA-Z].+)]\((.*?)[)]/im;
|
||||
const EMBED_REGEX = /@\[([a-zA-Z].+?)]\((.*?)[)]/im;
|
||||
function extractVideoParameters(url) {
|
||||
const parameterMap = new Map();
|
||||
const params = url.replace(/&/gi, '&').split(/[#?&]/);
|
||||
|
||||
Reference in new issue
Block a user