Skip to content

Commit

Permalink
Allow spaces in regexp repetition operators.
Browse files Browse the repository at this point in the history
For instance, `x{n, m}`, `x{n ,m}` and `x{n  ,  m}` are all equivalent to `x{n,m}`. This is done for compatibility with YARA-X, but I've seen real-life regular expressions in that contain such spaces, for example:

```
/C:\\Users\\qqq\\.{30, 50}\.pdb/
```
  • Loading branch information
plusvic committed May 22, 2024
1 parent 5f2a221 commit f1640e2
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 107 deletions.
Loading

0 comments on commit f1640e2

Please sign in to comment.