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}"`)
1919const pathMatcher = `match req.get_path() {
2020 ${ pathMatches . join ( ' | ' ) } => req.with_set_header("Host", "hyperquark.github.io").send(BACKEND)?,
2121 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();
2323 if ok_path_re.is_match(path) {
2424 Request::get("https://hyperquark.github.io/").send(BACKEND)?
2525 } else {
@@ -30,4 +30,4 @@ const pathMatcher = `match req.get_path() {
3030
3131console . log ( pathMatcher )
3232
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