| Name |
Last commit
|
Last update |
|---|---|---|
| appveyor | ||
| yara @ 13679435 | ||
| .gitmodules | ||
| LICENSE | ||
| MANIFEST.in | ||
| README.rst | ||
| appveyor.yml | ||
| setup.cfg | ||
| setup.py | ||
| tests.py | ||
| yara-python.c |
The `Rules.match` function now receives an optional `allow_duplicate_metadata=True` argument, which changes the structure of `Match.meta`. By default `Match.meta` is a dictionary with metadata names and their corresponding values, if a metadata name appears duplicated in a rule, the last value will be used. For example, consider the following rule:
```yara
rule demo {
meta:
foo = "foo #1"
foo = "foo #2"
bar = "bar"
condition:
false
}
```
In that case `Match.meta` would be `{"foo": "foo #2", "bar": "bar"}` by default (`allow_duplicate_metadata=False`), but with `allow_duplicate_metadata=True` it would be: `{"foo": ["foo #1", "foo #2"], "bar": ["bar"]}`.
| Name |
Last commit
|
Last update |
|---|---|---|
| appveyor | Loading commit data... | |
| yara @ 13679435 | ||
| .gitmodules | Loading commit data... | |
| LICENSE | Loading commit data... | |
| MANIFEST.in | Loading commit data... | |
| README.rst | Loading commit data... | |
| appveyor.yml | Loading commit data... | |
| setup.cfg | Loading commit data... | |
| setup.py | Loading commit data... | |
| tests.py | Loading commit data... | |
| yara-python.c | Loading commit data... |