etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
969 stars 112 forks source link

Hyphens in field names #19

Closed gregadams4 closed 8 years ago

gregadams4 commented 8 years ago

I receive the following error when trying to query field names that have a hyphen in them. Have tried a few ways around it i.e. escaping and such and only to be given other errors. Just curious if this is expected behaviour, if there is a way around it, or if we could get a bug fix. Almost all my fields have hyphens, works fine on any fields that don't. sad face.

Query given:

os-cpu-one:>10

Error Thrown:

Error: Catch all: Expected ":" or [a-zA-Z0-9._] but "-" found.

kiwiz commented 8 years ago

@gregadams4 Expected behaviour, but only because don't have any fields with hyphens. :]

I've just pushed a fix for this. It should work as long as your field name doesn't start with a hyphen.

gregadams4 commented 8 years ago

Can confirm this push worked :)

Thank you sir.