mtanda / grafana-sumologic-datasource

Apache License 2.0
10 stars 4 forks source link

Prevent stripComment() function from interfering with geo:// lookup syntax #34

Closed mksh closed 4 years ago

mksh commented 4 years ago

Sumologic has a lookup operator in its query language, which is, beyond other uses, is able to join records on geospatial data.

https://help.sumologic.com/05Search/Search-Query-Language/Search-Operators/Geo-Lookup

Unfortunately its syntax ( lookup ... from geo://location ) was interfering with stripComment() function of this plugin, which tainted all the query with geospatial data usage.

This patch fixes the stripComment() regexp, so now :// is not treated as comment

mtanda commented 4 years ago

Thanks for contribution! I release new version, please test!

mksh commented 4 years ago

Thank you, works well!