Open michaelmalone opened 8 years ago
modified short circuit on 'pattern' parameter to use a truthy check rather than explicitly checking against undefined. This will stop the filter from processing when the pattern is null or empty in addition to undefined.
@michaelmalone Thank you for your contribution!
Would you mind writing a test to cover this case as well?
Sure, will add the test soon.
modified short circuit on 'pattern' parameter to use a truthy check rather than explicitly checking against undefined. This will stop the filter from processing when the pattern is null or empty in addition to undefined.