Permalink
Browse files

CODE-3222 - sub choices might match the prereq with a delimiter

  • Loading branch information...
Bryan McRoberts authored and mertonmonk committed Jan 14, 2018
1 parent a5626ef commit f8b7e93e2153b6cbac822515a74de4ddc5611238
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/src/java/pcgen/core/prereq/PrerequisiteUtilities.java
@@ -369,7 +369,7 @@ private static int countSubkeyMatches(List<String> assocs, String subKey)
int numMatches = 0;
for (String s : assocs)
{
if (subKey.equalsIgnoreCase(s))
if (subKey.equalsIgnoreCase(s) || s.endsWith("|"+subKey))
{
numMatches++;
}
@@ -381,7 +381,7 @@ private static boolean hasAssoc(List<String> assocs, String subKey)
{
for (String s : assocs)
{
if (subKey.equalsIgnoreCase(s))
if (subKey.equalsIgnoreCase(s) || s.endsWith("|"+subKey))
{
return true;
}

0 comments on commit f8b7e93

Please sign in to comment.