Is it possible to integrate Google RE2 in angular 2 project?

  angular, code-security, regex

Hello I’m trying to check how to use an anti REDOS attack library into my Angular 2 project.

I have some validators.pattern() functions that after running Sonarqube it reported that those regex could be exploited into REDOS attacks.

By recommendations i came across Google RE2, it has a nodeJS wrapper but i can’t find documentation on if this could be integrated in the frontend side, which in my case is built in Angular 2.

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.