Skip to content

Commit 04a3e22

Browse files
Fix code scanning alert no. 19: Incomplete regular expression for hostnames
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent bbe2de2 commit 04a3e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ReactDOM.render(<App />, document.getElementById('root'))
1212

1313
// <!-- Start of topcoder Topcoder Universal Navigation script -->
1414
// SAST/open-redirect handling: make sure script hostname matches what we expect
15-
if ((new URL(UNIVERSAL_NAV_URL)).hostname.match(/uni-nav.topcoder(-dev)?.com$/i)) {
15+
if ((new URL(UNIVERSAL_NAV_URL)).hostname.match(/uni-nav\.topcoder(-dev)?\.com$/i)) {
1616
// eslint-disable-next-line no-unused-expressions
1717
!(function (n, t, e, a, c, i, o) {
1818
// eslint-disable-next-line no-unused-expressions, no-sequences

0 commit comments

Comments
 (0)