mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
Fix issue with odd quoting (fixes #779)
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
- Always omit EA CD-Key
|
||||
- Add packer filtering tests
|
||||
- Simplify prefix filtering
|
||||
- Fix issue with odd quoting
|
||||
|
||||
### 3.2.4 (2024-11-24)
|
||||
|
||||
|
||||
@@ -80,6 +80,17 @@ namespace MPF.ExecutionContexts.Test
|
||||
Assert.True(context.IsDumpingCommand());
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("cd --drive=dr --image-path=\"directory name\" --image-name=\"image name.bin\"")]
|
||||
public void SpacesTest(string parameters)
|
||||
{
|
||||
string? expected = "cd --drive=dr --image-path=\"directory name\" --image-name=\"image name.bin\"";
|
||||
var context = new ExecutionContext(parameters);
|
||||
string? actual = context.GenerateParameters();
|
||||
Assert.Equal(expected, actual);
|
||||
Assert.True(context.IsDumpingCommand());
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DVD
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace MPF.ExecutionContexts.Data
|
||||
}
|
||||
|
||||
index++;
|
||||
Value = parts[index];
|
||||
Value = parts[index].Trim('"');
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace MPF.ExecutionContexts.Data
|
||||
return !_required;
|
||||
}
|
||||
|
||||
Value = val;
|
||||
Value = val.Trim('"');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user