We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd82e3d commit 812b5f8Copy full SHA for 812b5f8
rulesengine/rules.go
@@ -116,8 +116,8 @@ func parseAllowRule(ruleStr string) (Rule, error) {
116
return Rule{}, fmt.Errorf("unknown key: %s", key)
117
}
118
119
- // Skip whitespace or comma separators
120
- for rest != "" && (rest[0] == ' ' || rest[0] == '\t' || rest[0] == ',') {
+ // Skip whitespace separators (only support mac and linux so \r\n shouldn't be a thing)
+ for rest != "" && (rest[0] == ' ' || rest[0] == '\t' || rest[0] == '\n') {
121
rest = rest[1:]
122
123
0 commit comments