Don't use internal predicates in revel

This commit is contained in:
Sauyon Lee
2021-09-27 22:48:14 -07:00
committed by Owen Mansel-Chan
parent 73684f483c
commit d9383d9412

View File

@@ -294,7 +294,7 @@ module Revel {
exists(Type controllerType, string controllerRe, string handlerRe, string pathRe |
controllerType = skipImplicitFieldReads(this.getReceiver().asInstruction()).getResultType() and
controllerRe = "\\Q" + controllerType.getName() + "\\E" and
handlerRe = "\\Q" + this.getEnclosingCallable().getName() + "\\E" and
handlerRe = "\\Q" + this.asExpr().getEnclosingFunction().getName() + "\\E" and
// find a file named '/views/<controller>/<handler>(.<template type>).html
pathRe = "/views/" + controllerRe + "/" + handlerRe + "(\\..*)?\\.html?"
|