]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
fix regex filter 9544/head
authorMarc Foley <m.foley.88@gmail.com>
Mon, 9 Jun 2025 14:25:22 +0000 (15:25 +0100)
committerMarc Foley <m.foley.88@gmail.com>
Mon, 9 Jun 2025 14:25:22 +0000 (15:25 +0100)
.ci/tags.html

index 00304f7eab33dd12e0edd3c1ec8cc9681c2ab76b..4a92b20a3ae6cd764c96284bb015bab6685c1a27 100644 (file)
@@ -448,6 +448,11 @@ function axesCombos(axes) {
         }
         filtered.sort(sortFunc);
 
+        if (this.tagFilter !== "") {
+          const myRegex = new RegExp(this.tagFilter, "i");
+          filtered = filtered.filter(family => myRegex.test(family.displayName));
+        }
+
         
         if (this.reverseTags) {
           filtered.reverse();