Skip to content

Commit fe4a4e6

Browse files
paulobressanverbotenj
authored andcommitted
fix: adjusted host regex (demeter-run#70)
1 parent 8f49033 commit fe4a4e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl State {
5252
pub fn try_new() -> Result<Self, Box<dyn Error>> {
5353
let config = Config::new();
5454
let metrics = Metrics::try_new(Registry::default())?;
55-
let host_regex = Regex::new(r"(dmtr_[\w\d-]+)?\.?.+")?;
55+
let host_regex = Regex::new(r"([dmtr_]?[\w\d-]+)?\.?.+")?;
5656
let consumers = Default::default();
5757
let tiers = Default::default();
5858
let limiter = Default::default();

0 commit comments

Comments
 (0)