Hello. I am using the npm package @uniswap/token-lists and trying to validate the schema with Ajv as the readme instructs.
However for the line “ajv.compile(schema)”. I get the error “Error validating tokenlists.org data: SyntaxError: Invalid regular expression: /^[ \w.’+-%/À-ÖØ-öø-ÿ:]+$/: Invalid escape”. I looked in the schema and that is part of one of the regular expressions. I put the regular expression into my text editor and it said there was an error after the close square bracket, before the plus.
Can anyone help? Is there a problem in the schema, or am I doing something wrong? Was not able to post on GitHub so I’m not sure where to ask about this.