diff --git a/nonprofit/index.html b/nonprofit/index.html
index cf91a2822..451543b92 100644
--- a/nonprofit/index.html
+++ b/nonprofit/index.html
@@ -114,7 +114,7 @@
Total Taxpayer Dollars
- | EIN |
+ EIN |
501(c)(3) Name |
Contributions Total |
Government Grants |
@@ -282,8 +282,10 @@ Total Taxpayer Dollars
rowsToRender.forEach(item => {
const tr = $('
');
+ // Show the EIN with the standard "XX-XXXXXXX" format
+ const maskedEin = item.ein.substring(0, 2) + '-' + item.ein.substring(2);
const officerLink = `Principal Officers`;
- const proPublicaLink = `${item.ein}
${officerLink}`
+ const proPublicaLink = `${maskedEin}
${officerLink}`
tr.append($(' | ').html(proPublicaLink));
tr.append($(' | ').text(item.name));
@@ -311,7 +313,7 @@ Total Taxpayer Dollars
// Applies the current filter and the current sort, then renders
function applyFilterAndSort() {
- const filterQuery = $('#filterInput').val();
+ const filterQuery = $('#filterInput').val().trim().replace(/[-\s]/g, '');
let filtered = filterData(nonprofitData, filterQuery);
if (currentSortField) {