Skip to content

Commit dab592c

Browse files
author
Ozan Tellioglu
committed
Support for eml extension with MSG Handler Plugin
1 parent dad5323 commit dab592c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cm6/linkDetector.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ export const detectLink = (params: { lineText: string; sourceFile: TFile; plugin
160160
}
161161

162162
// --> C1. Outlook MSG Links
163-
const msgWikiRegex = /!\[\[.*(msg)(.*)?\]\]/;
163+
const msgWikiRegex = /!\[\[.*(msg|eml)(.*)?\]\]/;
164164
const msgWikiMatch = lineText.match(msgWikiRegex);
165165

166166
if (msgWikiMatch) {
167-
const msgWikiFileNameRegex = /\[\[.*.msg/;
167+
const msgWikiFileNameRegex = /\[\[.*.(msg|eml)/;
168168
const msgWikiFileNameMatch = msgWikiMatch[0].match(msgWikiFileNameRegex);
169169
if (msgWikiFileNameMatch) {
170170
const msgWikiFileNameMatchClear = msgWikiFileNameMatch[0].replace('[[', '');

0 commit comments

Comments
 (0)