Bladeren bron

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

master
Lukas Zhang 5 jaren geleden
committed by Savorboard
bovenliggende
commit
e2c257f960
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      src/DotNetCore.CAP/IConsumerServiceSelector.Default.cs

+ 2
- 2
src/DotNetCore.CAP/IConsumerServiceSelector.Default.cs Bestand weergeven

@@ -195,7 +195,7 @@ namespace DotNetCore.CAP
.Where(x => x.Attribute.Name.IndexOf('#') >= 0)
.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
}).ToList();
_poundList.TryAdd(group, tmpList);
@@ -220,4 +220,4 @@ namespace DotNetCore.CAP
public T Descriptor { get; set; }
}
}
}
}

Laden…
Annuleren
Opslaan