grafana-zabbix
grafana-zabbix copied to clipboard
Switch to regexp2 for parseFilter()
I changed the returned regexp of parseFilter() to regexp2. I kept all other uses regexp since there's no need for a switch and regexp2 seems to be unnecessary complex to use for something like FindStringSubmatch().
I haven't run any tests on a real grafana instance, I'll try that later. But I extended the tests and they passed.
If there's anything I could/should change, just let me know! :)
This PR should fix #1264