mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Don't protect arbitrary paths
We only need to protect our predefined variables, not ones that the user might create that uses the same pattern
This commit is contained in:
parent
094870e7a4
commit
d195e93ebe
@ -46,14 +46,8 @@ static const std::vector<wxString> predefinedEnvVars = {
|
||||
};
|
||||
|
||||
|
||||
const wxRegEx versionedEnvVarRegex( wxS( "KICAD[0-9]+_[A-Z0-9_]+(_DIR)?" ) );
|
||||
|
||||
|
||||
bool ENV_VAR::IsEnvVarImmutable( const wxString& aEnvVar )
|
||||
{
|
||||
if( versionedEnvVarRegex.Matches( aEnvVar ) )
|
||||
return true;
|
||||
|
||||
for( const wxString& s : predefinedEnvVars )
|
||||
{
|
||||
if( s == aEnvVar )
|
||||
|
Loading…
x
Reference in New Issue
Block a user