temp add new scrape rule

pattern: \'
ef changes to: \''
This commit is contained in:
Collin M. Barrett 2018-01-31 19:17:39 -06:00
parent 34992c5896
commit 07c88be4e4

View file

@ -23,6 +23,7 @@ public string Content
private static string LintStringForMySql(string rule)
{
rule = TrimSingleBackslashFromEnd(rule);
rule = DropIfContainsBackslashSingleQuote(rule);
return rule;
}
@ -30,5 +31,11 @@ private static string TrimSingleBackslashFromEnd(string rule)
{
return rule.EndsWith(@"\") && !rule.EndsWith(@"\\") ? rule.Remove(rule.Length - 1) : rule;
}
private static string DropIfContainsBackslashSingleQuote(string rule)
{
//TODO: resolve issue and/or log rule
return rule.Contains(@"\'") ? null : rule;
}
}
}