fix(abigen): use correct str Regex (#1566)
This commit is contained in:
parent
52ead7c645
commit
43b8bb5251
|
@ -1,6 +1,6 @@
|
||||||
//! Filtering support for contracts used in [`Abigen`]
|
//! Filtering support for contracts used in [`Abigen`]
|
||||||
|
|
||||||
use regex::bytes::Regex;
|
use regex::Regex;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
/// Used to filter contracts that should be _included_ in the abigen generation.
|
/// Used to filter contracts that should be _included_ in the abigen generation.
|
||||||
|
@ -138,7 +138,7 @@ macro_rules! impl_filter {
|
||||||
if self.exact.contains(name) {
|
if self.exact.contains(name) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
self.patterns.iter().any(|re| re.is_match(name.as_bytes()))
|
self.patterns.iter().any(|re| re.is_match(name))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue