Literal starting with http

This commit is contained in:
Sergey
2017-02-28 13:32:50 -08:00
committed by Juan Martín Sotuyo Dodero
parent eba729c953
commit f3c6d15561

View File

@ -114,7 +114,7 @@ public class VfUnescapeElRule extends AbstractVfRule {
if (expression != null) {
final ASTLiteral literal = expression.getFirstChildOfType(ASTLiteral.class);
if (literal != null && literal.jjtGetChildIndex() == 0) {
if (literal.getImage().startsWith("'/") || literal.getImage().startsWith("\"/")) {
if (literal.getImage().startsWith("'/") || literal.getImage().startsWith("\"/") || literal.getImage().toLowerCase().startsWith("'http") || literal.getImage().toLowerCase().startsWith("\"http") ) {
return true;
}
}