Skip to content

Commit afbdd4c

Browse files
committed
[test fix] don't requote the tag string
1 parent e9532f1 commit afbdd4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/riemann-query.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ clj_ast_field = (field) ->
166166

167167
clj_ast_tagged = (tag) ->
168168
# "Takes a tag and emits an expression to match that tag in an event."
169-
"(event.tags.indexOf(\"#{tag}\") !== -1)"
169+
"(event.tags.indexOf(#{tag}) !== -1)"
170170

171171
make_regex = (str) ->
172172
# "Convert a string like \"foo%\" into /^foo.*$/"

test/riemann-query.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe "js-ast-test", ->
5959
"state =~ \"%foo%\"": '!!/^.*foo.*$/g.exec(event["state"])'
6060

6161
# Tags
62-
"tagged \"cat\"": '(event.tags.indexOf(""cat"") !== -1)'
62+
"tagged \"cat\"": '(event.tags.indexOf("cat") !== -1)'
6363

6464
# # Boolean operators
6565
# "not host = 1": (not (= (:host event) 1))

0 commit comments

Comments
 (0)