7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 15:39:17 +00:00

Make sure whitespace at end of command doesn't mess up detection.

(Fixes the failing test case.)
This commit is contained in:
Jeff Young 2023-02-22 23:28:35 +00:00
parent 22bca5c2a0
commit 4917abe655

View File

@ -96,7 +96,7 @@ SIM_TYPE NGSPICE_CIRCUIT_MODEL::GetSimType()
SIM_TYPE NGSPICE_CIRCUIT_MODEL::CommandToSimType( const wxString& aCmd )
{
wxString cmd = aCmd.Lower();
wxString cmd = aCmd.Lower().Trim();
if( cmd.StartsWith( wxT( ".ac" ) ) )
return ST_AC;