Skip to content

Commit 21f8470

Browse files
author
Swamp Ig
committed
Allow wildcards for inserts
1 parent 02033af commit 21f8470

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎moduleManager.cs‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,9 @@ public ConfigNode ModifyNode(ConfigNode original, ConfigNode mod)
530530
switch (cmd)
531531
{
532532
case Command.Insert:
533-
if (match.Groups[3].Success || valName.Contains('*') || valName.Contains('?'))
533+
if (match.Groups[3].Success)
534534
{
535-
if (match.Groups[3].Success)
536-
print("[ModuleManager] Cannot use operators with insert value: " + mod.name);
537-
if (valName.Contains('*') || valName.Contains('?'))
538-
print("[ModuleManager] Cannot use wildcards (* or ?) with insert value: " + mod.name);
535+
print("[ModuleManager] Cannot use operators with insert value: " + mod.name);
539536
}
540537
else
541538
{

0 commit comments

Comments
 (0)