diff --git a/requirements.txt b/requirements.txt index fa99160c..f0cc2201 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ alembic==1.10.2 PyMuPDF==1.21.1 pydantic-settings==2.0.2 email-validator==2.0.0.post2 -python-multipart==0.0.7 +python-multipart==0.0.18 diff --git a/training-front-end/src/plugins/uswds_links.js b/training-front-end/src/plugins/uswds_links.js index 33893e6f..bd7bbda8 100644 --- a/training-front-end/src/plugins/uswds_links.js +++ b/training-front-end/src/plugins/uswds_links.js @@ -18,8 +18,11 @@ export function processLinksPlugin() { // these will all be local, so ignore return } - - if (!(domain.hostname === 'gsa.gov' || domain.hostname === 'www.gsa.gov'|| domain.protocol === 'mailto:')) { + const internalHost = [ + 'gsa.gov', + 'www.gsa.gov' + ] + if (!(internalHost.includes(domain.hostname) || domain.protocol === 'mailto:')) { properties.className += ' usa-link--external' }