derkork / simplegen

A simple yet powerful general-purpose code generator
Other
9 stars 1 forks source link

package2path.js in the example project produces wrong path #5

Closed daszloty closed 7 years ago

daszloty commented 7 years ago

The filter only replaces the first match in the path instead of all matches.

e.g. the output for {{ node.package | replace('.', '/') }}/Test.java is foo/bar/baz/Test.java but the output for {{ node.package | package2path }}/Test.java is foo/bar.baz/Test.java