mirror of
https://codeberg.org/steam-vent/proto.git
synced 2026-08-02 20:24:47 +02:00
fix(build): relax file-name prefix constraint
This commit is contained in:
parent
4b24fb5ddc
commit
8d229c07c9
1 changed files with 7 additions and 4 deletions
|
|
@ -90,10 +90,13 @@ impl Kind {
|
|||
return false;
|
||||
};
|
||||
if let Some(file_name) = file_name {
|
||||
if !(file_name.contains(&self.enum_prefix)
|
||||
|| file_name.replace('_', "").contains(&self.enum_prefix))
|
||||
{
|
||||
return false;
|
||||
if !self.is_gc && !self.enum_prefix.is_empty() {
|
||||
let file_no_sep = file_name.replace('_', "");
|
||||
if !(file_name.contains(&self.enum_prefix)
|
||||
|| file_no_sep.contains(&self.enum_prefix))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
struct_name.eq_ignore_ascii_case(stripped)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue