mattermost-plugin-autolink icon indicating copy to clipboard operation
mattermost-plugin-autolink copied to clipboard

Slash-commands not looking for exact match on link name

Open TheLure opened this issue 5 years ago • 3 comments

Verified in 1.2.1: The /autolink commands does not look fot the exact link name when you try to manipulate links. This makes it impossible to manipulate some links.

Example:

/autolink add testA This is fine. /autolink add testA2 Also fine. /autolink set testA Pattern 123456789 returns: "testA" matched more than one link: ["testA" "testA2"]

As a result you have to remove link testA2 in order to manipulate testA.

Correct behaviour would be to only look for a exact match.

TheLure avatar Oct 16 '20 13:10 TheLure

hey, can I grab this one?

jrepe avatar Oct 22 '20 19:10 jrepe

any update on this?

p3k avatar Jul 14 '21 09:07 p3k

just out of sheer desperation i tried to use the index numbers of each autolink to change my version of the testA link – and what can i say, this works!

/autolink list
1: testA
Pattern: ``
Template: ``
2: testA2
Pattern: ``
Template: ``

/autolink set 1 Pattern 123456789
1: testA
Pattern: 123456789
Template: ``
2: testA2
Pattern: ``
Template: ``

p3k avatar Feb 20 '23 08:02 p3k