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