We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c3878f commit a33ff82Copy full SHA for a33ff82
1 file changed
CitesChecklistParser/Regulation.cs
@@ -116,7 +116,7 @@ public string ResourceValue()
116
public void Output()
117
{
118
int index = 0;
119
- foreach (string synonym in this.SynonymNames.Where(words => ! words.Contains("(")).Distinct())
+ foreach (string synonym in this.SynonymNames.Where(word => word.Count(c => char.IsUpper(c)) == 1).Distinct())
120
121
Console.WriteLine($"SET @base = (SELECT id FROM {this.ResourceTable()} WHERE scientific = \"{synonym}\");");
122
Console.WriteLine($"SET @rename = (SELECT id FROM {this.ResourceTable()} WHERE scientific LIKE \"%{synonym.Split().Last()}\" HAVING COUNT(*) = 1);");
0 commit comments