From nobody Tue Feb 24 04:05:13 2026 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fKkdq1VQxz6SxlP for ; Tue, 24 Feb 2026 04:05:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fKkdq0whHz3KY1 for ; Tue, 24 Feb 2026 04:05:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771905919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sK4R90rQxTIUPNFp1QSNvbJbrfnpRzucScWSUbtyM2U=; b=TA/WbKW69gTFN4YejcVILFRz470YnMVqy5jYwFOVsofqu0yT7+b3SRzEAcL3ASNV8AzUVv l1zKsBmKx968pU7IW+G0iu+XYsvcazdi2Z3zsV0H2QVbJcwbWR0vuvEkZBO2m5kl/LKYSF JSY5Q+2jdRAtp/8kFOWej+xe7iaFU6PjuhdamnfnGKPV6nypIl6498FxNl2bjRiFCJWvGb 8mJ+KQJMxeUJThtlRK3avcSTtVzd/OybjP0HPmgmrva34wqPqpistxVsrKJFhCilgHH+r6 +Q+amr8dYpsEvPF0QgcCYrSoeezw1udTd02yaAtBF3YDcegNfWJmmqFSkSol2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771905919; a=rsa-sha256; cv=none; b=cDoBsMv/GpSJVvabwmoOY+E+Ok7o0DBlfPh5x5gbPFPd+b3xJ+XuTayvz//cjXRNX3F8OW QjIh2sw+GZHZh3wdogqao2RwDRZwhW1vg4s4G6UJY0/dhbVri6sEf77Z7P0ktHc3tOaOZT ISaMxoW9lYuJ5wDpxsW7Y81ZvkJyfZ7V8ZtCXgJ/UpaC5G+A4Wx9kB2QPRs3GZMzyfXPi8 uOvXiozXDgLOi1yZa1IUFGhLjUDk8qO2BreikOK2ZL/QJB7QEqVU1EabWLgagxlSnLM2EE GoccWUyKNWWBNQocsDLwkpn8l+1ysH9uCdv/ZgDp8nr6H9jO0DS/sun4xx0qVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771905919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sK4R90rQxTIUPNFp1QSNvbJbrfnpRzucScWSUbtyM2U=; b=Aj4//SrUy3ANtbLNFHUgI3Yiz6509Hpr+398v5dXuk2RtT8AdZcaFpw61IqJFnZ5pxaqRq XDyXeGDiZYZ5SQ0qPVBnGcXE51LVmGdd/hPs/v+hiaPQQIoDeCTVo9yGuMz1cVoDeu1mkE FGaA6scL+jTiThinwKTYgL2IPR7aeQFjRRxBfBauV6zP61gzpyvSw7lGqy6pCFkuzFoBWD B3fif2NJxejAAEPrUlH++9kP6Cw67XIvnC0MBtD7mDFlDlbOVw/IoI5WRmSZy8qYwYtd4/ T3aolY3/xmOasPCQlE/IHcg0Sr6P2gVf8T6CmdVEAwWeIwpLoeOAQbKQltfe/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fKkdq03yHzyQQ for ; Tue, 24 Feb 2026 04:05:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 337a1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 24 Feb 2026 04:05:13 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Colin Percival Subject: git: 8fdf179e0b - main - EC2 AMIs: Add .trim() to filtering script List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8fdf179e0b7bee5d168965bd9992b5569dee6dc0 Auto-Submitted: auto-generated Date: Tue, 24 Feb 2026 04:05:13 +0000 Message-Id: <699d2379.337a1.7c5f4072@gitrepo.freebsd.org> The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/doc/commit/?id=8fdf179e0b7bee5d168965bd9992b5569dee6dc0 commit 8fdf179e0b7bee5d168965bd9992b5569dee6dc0 Author: Colin Percival AuthorDate: 2026-02-24 03:58:45 +0000 Commit: Colin Percival CommitDate: 2026-02-24 04:05:07 +0000 EC2 AMIs: Add .trim() to filtering script The FreeBSD website uses HTML Tidy, which adds whitespace inside the table of EC2 AMIs; I didn't notice this when I was testing locally because it didn't run there. This results in the filtering breaking since e.g. "ufs" does not match "\nufs\n". Addding .trim() to the filtering script removes the extra whitespace which HTML Tidy added. PR: 293397 --- website/content/en/releases/15.0R/ec2-ami-ids/latest.adoc | 8 ++++---- website/content/en/releases/15.0R/ec2-ami-ids/release.adoc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/website/content/en/releases/15.0R/ec2-ami-ids/latest.adoc b/website/content/en/releases/15.0R/ec2-ami-ids/latest.adoc index 781d54243e..9651592c37 100644 --- a/website/content/en/releases/15.0R/ec2-ami-ids/latest.adoc +++ b/website/content/en/releases/15.0R/ec2-ami-ids/latest.adoc @@ -580,10 +580,10 @@ function filter_table() { const filter_fs_val = document.getElementById('filter_fs').value; for (row of rows) { const cells = row.getElementsByTagName('td'); - const region = cells[0].textContent; - const arch = cells[1].textContent; - const flavour = cells[2].textContent; - const fs = cells[3].textContent; + const region = cells[0].textContent.trim(); + const arch = cells[1].textContent.trim(); + const flavour = cells[2].textContent.trim(); + const fs = cells[3].textContent.trim(); visible = 1; console.log(region); if (region != filter_region_val && filter_region_val != "") diff --git a/website/content/en/releases/15.0R/ec2-ami-ids/release.adoc b/website/content/en/releases/15.0R/ec2-ami-ids/release.adoc index 85234ca921..7850caf49d 100644 --- a/website/content/en/releases/15.0R/ec2-ami-ids/release.adoc +++ b/website/content/en/releases/15.0R/ec2-ami-ids/release.adoc @@ -578,10 +578,10 @@ function filter_table() { const filter_fs_val = document.getElementById('filter_fs').value; for (row of rows) { const cells = row.getElementsByTagName('td'); - const region = cells[0].textContent; - const arch = cells[1].textContent; - const flavour = cells[2].textContent; - const fs = cells[3].textContent; + const region = cells[0].textContent.trim(); + const arch = cells[1].textContent.trim(); + const flavour = cells[2].textContent.trim(); + const fs = cells[3].textContent.trim(); visible = 1; console.log(region); if (region != filter_region_val && filter_region_val != "")