Skip to content

Commit 2b89970

Browse files
authored
fix: adjusted host regex (#39)
1 parent 414d79b commit 2b89970

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/proxy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- ".github/workflows/proxy.yml"
1010
- "proxy/**"
11+
- "operator/**"
1112

1213
jobs:
1314
build-images:

proxy/src/proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct SubmitApiProxy {
2222
}
2323
impl SubmitApiProxy {
2424
pub fn new(state: Arc<State>, config: Arc<Config>) -> Self {
25-
let host_regex = Regex::new(r"(dmtr_[\w\d-]+)?\.?.+").unwrap();
25+
let host_regex = Regex::new(r"([dmtr_]?[\w\d-]+)?\.?.+").unwrap();
2626

2727
Self {
2828
state,

0 commit comments

Comments
 (0)