bd79f475d7a5bc2a54f40eed4c16db77dd28f14a
hiram
  Fri Sep 13 14:45:12 2024 -0700
one word with wildcard* leave it as-is refs #32596

diff --git src/hg/hubApi/findGenome.c src/hg/hubApi/findGenome.c
index a2bc3a4..c0ce911 100644
--- src/hg/hubApi/findGenome.c
+++ src/hg/hubApi/findGenome.c
@@ -455,30 +455,33 @@
     jsonWriteString(jw, argStatus, versionStatus);
 if (isNotEmpty(assemblyLevel))
     jsonWriteString(jw, argLevel, assemblyLevel);
 
 long long itemCount = 0;
 long long totalMatchCount = 0;
 char **words;
 AllocArray(words, wordCount);
 (void) chopByWhite(searchString, words, wordCount);
 if (1 == wordCount)
     {
     boolean doQuote = TRUE;
     /* already quoted, let it go as-is */
     if (startsWith("\"", words[0]) && endsWith(words[0],"\""))
 	doQuote = FALSE;
+    /* already wildcard, let it go as-is */
+    if (endsWith(words[0],"*"))
+	doQuote = FALSE;
     if (doQuote && hasWordBreaks(words[0]))
 	{
 	char *quotedWords = quoteWords(words[0]);
 	endResultSearchString = quotedWords;
 	itemCount = oneWordSearch(conn, quotedWords, jw, &totalMatchCount, &prefixSearch);
 	} else {
 	itemCount = oneWordSearch(conn, words[0], jw, &totalMatchCount, &prefixSearch);
 	}
     }
 else	/* multiple word search */
     itemCount = multipleWordSearch(conn, words, wordCount, jw, &totalMatchCount);
 
 if (prefixSearch)
     {
     struct dyString *addedStar = dyStringNew(64);