jsonplugin includeProperties 正则表达式,工作不正常。

 

配置

	/[/d+/]/.[^.]*$,
	/[/d+/]/.children/[/d+/]/.catName

属性 [0].children[1].catName应该能匹配,结果却没有。
修改JSONResult代码如下:
                        // Add a pattern that does not have the indexed property matching (ie. list/[/d+/] becomes list).
                     
                        if (patternPiece.endsWith("//]")) {
                            this.includeProperties.add(Pattern.compile(patternExpr.substring(0, patternExpr.lastIndexOf("//["))));

                            if (log.isDebugEnabled())
                                log.debug("Adding include property expression:  " + patternExpr.substring(0, patternExpr.lastIndexOf("//[")));
                        }
                            

 

你可能感兴趣的:(jsonplugin includeProperties 正则表达式,工作不正常。)