From c71979cb1a6f1da3b13f8012f8444fd530a17634 Mon Sep 17 00:00:00 2001 From: NJ-2020 Date: Tue, 24 Sep 2024 02:08:47 -0700 Subject: [PATCH 1/5] add - to reportMentions regex --- lib/ExpensiMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 0a17a763..766e17fc 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -303,7 +303,7 @@ export default class ExpensiMark { { name: 'reportMentions', - regex: /(?|<\/code>|<\/a>))/gimu, + regex: /(?|<\/code>|<\/a>))/gimu, replacement: '$1', }, From e97172c13914f69871d6e02ce21bd36068a09021 Mon Sep 17 00:00:00 2001 From: Novell <76243292+NJ-2020@users.noreply.github.com> Date: Tue, 24 Sep 2024 23:33:58 -0700 Subject: [PATCH 2/5] fix reportMentions regex --- lib/ExpensiMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 766e17fc..20fd329d 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -303,7 +303,7 @@ export default class ExpensiMark { { name: 'reportMentions', - regex: /(?|<\/code>|<\/a>))/gimu, + regex: /(?|<\/code>|<\/a>))/gimu, replacement: '$1', }, From 481cc691c40a03322f3ed820e992b765d5409f09 Mon Sep 17 00:00:00 2001 From: Novell <76243292+NJ-2020@users.noreply.github.com> Date: Sun, 29 Sep 2024 20:02:58 -0700 Subject: [PATCH 3/5] remove minus sign and underscore for reportMentions --- lib/ExpensiMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 20fd329d..82768c96 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -303,7 +303,7 @@ export default class ExpensiMark { { name: 'reportMentions', - regex: /(?|<\/code>|<\/a>))/gimu, + regex: /(?|<\/code>|<\/a>))/gimu, replacement: '$1', }, From 85e999b770bcffef51846c75ae84f463257dbb21 Mon Sep 17 00:00:00 2001 From: Novell <76243292+NJ-2020@users.noreply.github.com> Date: Sun, 29 Sep 2024 20:08:09 -0700 Subject: [PATCH 4/5] add minus sign --- lib/ExpensiMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 82768c96..3d560e12 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -303,7 +303,7 @@ export default class ExpensiMark { { name: 'reportMentions', - regex: /(?|<\/code>|<\/a>))/gimu, + regex: /(?|<\/code>|<\/a>))/gimu, replacement: '$1', }, From f1004dfa0859605937bcb0f1041e2d9fdde41a9f Mon Sep 17 00:00:00 2001 From: Novell <76243292+NJ-2020@users.noreply.github.com> Date: Sat, 12 Oct 2024 21:35:03 -0700 Subject: [PATCH 5/5] fix reportMentions regex --- lib/ExpensiMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index 3d560e12..78e2483f 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -303,7 +303,7 @@ export default class ExpensiMark { { name: 'reportMentions', - regex: /(?|<\/code>|<\/a>))/gimu, + regex: /(?<=^[*~_]?|[ \n][*~_]?)(#[\p{Ll}0-9-]{1,99})(?![^<]*(?:<\/pre>|<\/code>|<\/a>))/gimu, replacement: '$1', },