Commit e2c257f9 authored by Lukas Zhang's avatar Lukas Zhang Committed by Savorboard

Fix MatchPoundUsingRegex "." not escaped bug (#373)

parent d1c26b75
...@@ -195,7 +195,7 @@ namespace DotNetCore.CAP ...@@ -195,7 +195,7 @@ namespace DotNetCore.CAP
.Where(x => x.Attribute.Name.IndexOf('#') >= 0) .Where(x => x.Attribute.Name.IndexOf('#') >= 0)
.Select(x => new RegexExecuteDescriptor<ConsumerExecutorDescriptor> .Select(x => new RegexExecuteDescriptor<ConsumerExecutorDescriptor>
{ {
Name = ("^" + x.Attribute.Name + "$").Replace("#", "[0-9_a-zA-Z\\.]+"), Name = ("^" + x.Attribute.Name.Replace(".", "\\.") + "$").Replace("#", "[0-9_a-zA-Z\\.]+"),
Descriptor = x Descriptor = x
}).ToList(); }).ToList();
_poundList.TryAdd(group, tmpList); _poundList.TryAdd(group, tmpList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment