libcupsfilters: In ieee1284NormalizeMakeAndModel() remove "series" from model
We remove "series" from the model names when normalizing now, so we
also get a match if the printer list entry has "series" but the search
term not, or vice-versa (when both printer list enries and search
terms are normalized).
@@ -1120,6 +1120,20 @@ ieee1284NormalizeMakeAndModel(
while (strncasecmp(buffer, modelptr, modelptr - buffer) == 0)
moverightpart(buffer, bufsize, modelptr, buffer - modelptr);
+ /*
+ * Clean up the model name...
+ */
+
+ bufptr = modelptr;
+ while ((bufptr = strcasestr(bufptr, " series")) != NULL)
+ {
+ /*
+ * Strip "series"...
+ */
+
+ moverightpart(buffer, bufsize, bufptr, -7);
+ }
+
/*
* Find extra info...
*/
