Skip to content

Commit eb116e4

Browse files
authored
Updated regex to accept dash (#38)
1 parent 4eb6deb commit eb116e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: proxy/src/main.rs

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

0 commit comments

Comments
 (0)