Skip to content

Commit

Permalink
Fix code scanning alert no. 2: Missing regular expression anchor
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
jimmyzhen and github-advanced-security[bot] authored Oct 31, 2024
1 parent 8d7e8c3 commit ea850a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoogleAnalytics/googleAnalytics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const trackingId = () => {
let analyticsTrackerHostname = document.location.hostname;

// match hostname to google analytics domain identified for tracker
if (/^(www\.)?motrpac(-[a-z]+)?.org/.test(analyticsTrackerHostname)) {
if (/^(www\.)?motrpac(-[a-z]+)?.org$/.test(analyticsTrackerHostname)) {
// production app
analyticsTrackerHostname = 'www.motrpac-data.org';
} else {
Expand Down

0 comments on commit ea850a0

Please sign in to comment.