Skip to content

Commit

Permalink
fix: adjusted host regex (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan authored Nov 12, 2024
1 parent a037948 commit 3b16655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- ".github/workflows/proxy.yml"
- "proxy/**"
- "operator/**"

jobs:
build-images:
Expand Down
2 changes: 1 addition & 1 deletion proxy/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct ScrollsProxy {
}
impl ScrollsProxy {
pub fn new(state: Arc<State>, config: Arc<Config>) -> Self {
let host_regex = Regex::new(r"(dmtr_[\w\d-]+)?\.?.+").unwrap();
let host_regex = Regex::new(r"([dmtr_]?[\w\d-]+)?\.?.+").unwrap();

Self {
state,
Expand Down

0 comments on commit 3b16655

Please sign in to comment.