Skip to content

Commit

Permalink
[fix] Adding "/" and "-" chars for the new condition format
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed Jul 26, 2023
1 parent 775596d commit 5ab14db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion limitador/src/limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ mod conditions {

fn valid_id_char(&mut self) -> bool {
let char = self.input[self.pos];
char.is_alphanumeric() || char == '.' || char == '_'
char.is_alphanumeric() || char == '.' || char == '_' || char == '-' || char == '/'
}

fn scan_string(&mut self, until: char) -> Result<Token, SyntaxError> {
Expand Down

0 comments on commit 5ab14db

Please sign in to comment.