wooorm / refractor

Lightweight, robust, elegant virtual syntax highlighting using Prism
MIT License
724 stars 34 forks source link

Quantifier has nothing to repeat fix. #26

Closed puskin94 closed 4 years ago

puskin94 commented 4 years ago

Hi all! while developing and updating the dependencies of my React Native application (Glasnost), a Gitlab mobile client, the library react-native-syntax-highlighter introduced a very annoying issue that resulted in a crash when updating the android dependencies to handle Android X.
react-native-syntax-highlighter uses react-syntax-highlighter and the last module is using Refractor.
Something in some very low dependency in android has some serious issue that results in bad regex parsing. And the solution is to add some more escapes into the "broken" regex. This Pull Request is exactly about solving one of those.

Kind regards and thanks!