stanislav-tkach/os_info

Bug: matcher has unexpected behavior

exincore opened this issue · 0 comments

Matcher::KeyValue { key: "ID" } can match both of these:

VERSION_ID="1234"
ID="asdf"

It matches the first one it encounters. In this case, it matches VERSION_ID="1234".

Expected behavior

Matcher::KeyValue { key: "ID" } only matches ID="asdf" and NOT VERSION_ID="1234". It should match the key exactly.