]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
tags.html: no range if min and max are same tag-vf
authorMarc Foley <m.foley.88@gmail.com>
Wed, 22 Jan 2025 11:14:52 +0000 (11:14 +0000)
committerMarc Foley <m.foley.88@gmail.com>
Wed, 22 Jan 2025 11:14:52 +0000 (11:14 +0000)
.ci/tags.html

index 3380df1f76928603b90cb1932cbd30b4ed0a8ba5..f20b19a29eec01be607dedc39187697a5225a549 100644 (file)
         const fontAxes = this.axes.map(axis => axis.name)
         tag.push(fontAxes.join("|") + "@");
         this.axes.forEach(ax => {
-            tag.push(`${ax.min}..${ax.max}|`);
+            if (ax.min === ax.max) {
+                tag.push(`${ax.min}|`);
+            } else {
+                tag.push(`${ax.min}..${ax.max}|`);
+            }
         });
         return tag.join("").slice(0, -1);
     }