mirror of
https://github.com/litruv/Docs-Viewer.git
synced 2026-11-28 01:15:52 +11:00
Fix regex to include webp format in processWikiLinks method
This commit is contained in:
1 parent
3bef9a5d45
commit
445b3e00b3
1 file changed
+1
-1
@@ -429,7 +429,7 @@ class DocumentService {
|
||||
processWikiLinks(content) {
|
||||
return content.replace(/\[\[(.*?)\]\]/g, (match, linkText) => {
|
||||
const [targetTitle, displayText] = linkText.split('|').map(s => s.trim());
|
||||
if (targetTitle.match(/\.(png|jpg|jpeg|gif|mp4|webm)$/i)) {
|
||||
if (targetTitle.match(/\.(png|jpg|jpeg|webp|gif|mp4|webm)$/i)) {
|
||||
return match;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user