Hi everyone,

I am trying to use moment.js inside of Tapestry 5.4 environment and I got
this error:

Uncaught SyntaxError: Invalid regular expression: /^?erven$|^?vn$/: Nothing
to repeat

To fix it I had to add this:

  configuration.add("mint-moment",
        new JavaScriptModuleConfiguration(momentJs));

as you can see I just change the name of "momen" to "mint-moment" and its
works fine.


Is there any problem regarding the use of this library in Tapestry?


Thanks.

Reply via email to