t2t2 / obs-tablet-remote

Tablet optimised OBS Remote
http://t2t2.github.io/obs-tablet-remote/
MIT License
428 stars 129 forks source link

Correct a faulty Regular Expression #111

Closed sspain closed 3 years ago

sspain commented 3 years ago

Correct the Scene Filter for All Users

Two characters in my last commit somehow ended up incorrect. This commit updates the Regular Expression (and puts the faulty and corrected expressions in comments) so that the filter works correctly for everyone.

Bad Expression

~/.*(?:\[hidden]|\^\^}~~)$/i

Correct Expression

!/.*(?:\[hidden]|\^\^|~~)$/i Note the ! point instead of the ~ in the first position, negating the comparison. Also, note the } that should be a | toward the end of the expression that should allow the expression to match [hidden], ^^, or ~~, but instead would have matched [hidden] or ^^}~~ incorrectly.