Commit 78b528b
Stop the topic '*' wildcard from matching across dots (#2568)
TopicExchange documents '*' as any single word, but compiled it to
'.*?[^\.]', whose leading '.*?' also matches dots. Only the final
character was constrained, so 'a.*.c' matched 'a.b.x.c' and every
virtual transport delivered messages to queues that never bound them.
Compile '*' to a single dot-free word instead. '#' is unchanged.
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>1 parent e592de0 commit 78b528b
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
0 commit comments