scriptlet4docx icon indicating copy to clipboard operation
scriptlet4docx copied to clipboard

TableScriptingRowProcessor to support unicode

Open JustCodeJJ opened this issue 4 years ago • 0 comments

For TableScriptingRowProcessor.java

private static Pattern groovyFormPattern = Pattern .compile("\$\[((.?)(@\w+).?)\]", Pattern.DOTALL | Pattern.MULTILINE);

we need to change this to

private static Pattern groovyFormPattern = Pattern
        .compile("\\$\\[((.*?)(@[\\w+\\W+][^.]*).*?)\\]", Pattern.DOTALL | Pattern.MULTILINE);

This will help in supporting the unicode names for the list. Sample : $[@dgtag_test标签List.blahblah1]

Currently list comes as dgtag_testList

JustCodeJJ avatar Mar 29 '21 18:03 JustCodeJJ