khevamann / rn-responsive-styles

Responsive styles for react-native and react-native-web
MIT License
39 stars 3 forks source link

Make regex stricter and sanitize style names #25

Closed khevamann closed 7 months ago

khevamann commented 7 months ago

This change will make the regex matching stricter for classes as well as escape special characters in style names so that any valid string can be used as a style name without messing with the underlying functionality.

closes #24

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (6880223) 98.63% compared to head (3461b75) 98.63%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #25 +/- ## ======================================= Coverage 98.63% 98.63% ======================================= Files 11 11 Lines 146 147 +1 Branches 11 11 ======================================= + Hits 144 145 +1 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.