1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

PushTargetRegexp: simplify code

rel to: https://github.com/kataras/iris/issues/1562#issuecomment-660415246


Former-commit-id: da04ae0543e9b743cd4989ded5983ae15316a879
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-07-18 12:41:31 +03:00
parent e16abc96c6
commit fb8e677c08
3 changed files with 28 additions and 49 deletions

View File

@@ -28,7 +28,9 @@ var opts = iris.DirOptions{
// Match all js, css and ico files
// from all files (recursively).
// "/": regexp.MustCompile("((.*).js|(.*).css|(.*).ico)$"),
"/": iris.MatchCommonAssets,
// OR:
"/": iris.MatchCommonAssets,
"/app2/app2app3": iris.MatchCommonAssets,
},
Compress: true,
ShowList: true,