File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
sdcclient/monitor/dashboard_converters
specs/monitor/dashboard_converters Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ def convert_scope_string_to_expression(scope = None):
47
47
;
48
48
49
49
word =
50
- | /[\w \.]+/
51
- | '"' /[\w \.]+/ '"'
52
- | "'" /[\w \.]+/ "'"
50
+ | /[a-zA-Z0-9-_\- \.]+/
51
+ | '"' /[a-zA-Z0-9-_\- \.]+/ '"'
52
+ | "'" /[a-zA-Z0-9-_\- \.]+/ "'"
53
53
;
54
54
"""
55
55
Original file line number Diff line number Diff line change 37
37
"value" : ["foo" ]
38
38
}]]))
39
39
40
- with it ('parses correctly: cluster.id-number = "foo"' ):
41
- param = 'cluster.id-number = "foo"'
40
+ with it ('parses correctly: cluster.id-number = "foo-bar "' ):
41
+ param = 'cluster.id-number = "foo-bar "'
42
42
res = convert_scope_string_to_expression (param )
43
43
expect (res ).to (equal ([True , [{
44
44
"displayName" : "" ,
45
45
"isVariable" : False ,
46
46
"operand" : "cluster.id-number" ,
47
47
"operator" : "equals" ,
48
- "value" : ["foo" ]
48
+ "value" : ["foo-bar " ]
49
49
}]]))
50
50
51
51
with it ("parses correctly: agent.id = 'foo'" ):
You can’t perform that action at this time.
0 commit comments