File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const pathMatches = fileNames.map((name) => `"/${name}"`)
19
19
const pathMatcher = `match req.get_path() {
20
20
${ pathMatches . join ( ' | ' ) } => req.with_set_header("Host", "hyperquark.github.io").send(BACKEND)?,
21
21
path @ _ => {
22
- let ok_path_re = Regex::new(r"^/(settings|about|projects/(file|test|\d+))?$").unwrap();
22
+ let ok_path_re = Regex::new(r"^/(( settings|about|projects/(file|test|\d+))/? )?$").unwrap();
23
23
if ok_path_re.is_match(path) {
24
24
Request::get("https://hyperquark.github.io/").send(BACKEND)?
25
25
} else {
@@ -30,4 +30,4 @@ const pathMatcher = `match req.get_path() {
30
30
31
31
console . log ( pathMatcher )
32
32
33
- await writeFile ( 'path-matcher.rs' , pathMatcher , { encoding : 'utf8' } ) ;
33
+ await writeFile ( 'path-matcher.rs' , pathMatcher , { encoding : 'utf8' } ) ;
You can’t perform that action at this time.
0 commit comments