mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Escape single quotes as well
This commit is contained in:
parent
7f6c653f64
commit
745361b506
@ -39,7 +39,7 @@ public static class NettleFunctions
|
||||
protected override object GenerateOutput(TemplateContext context, params object[] parameterValues)
|
||||
{
|
||||
var value = GetParameterValue<string>("text", parameterValues);
|
||||
return Regex.Escape(value);
|
||||
return Regex.Escape(value).Replace("'", "\'");
|
||||
}
|
||||
|
||||
public override string Description => "Escapes a string";
|
||||
|
Loading…
Reference in New Issue
Block a user