Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensures a filter is valid before using it for regex to prevent break (f…
…ossasia#462) Summary: Checks to see if the current value put in the filter will cause visdom client to crash if used in a `string.match()` function. Thanks to OguzUzman for the catch and bug report. Fixes fossasia#446. Invalid regex no longer breaks the client when used in a filter <img width="1330" alt="screen shot 2018-08-29 at 10 41 56 pm" src="https://user-images.githubusercontent.com/1276867/44826410-db961100-abdc-11e8-9d27-7ac899866c92.png"> <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] For JavaScript changes, I have re-generated the minified JavaScript code. Pull Request resolved: fossasia#462 Differential Revision: D9616244 Pulled By: JackUrb fbshipit-source-id: 30dd46e83a18dc7b3eebe9b609e0f790af5c037e
- Loading branch information