Skip to content

Commit 1866f7a

Browse files
committed
Capitalise title
1 parent e1178c8 commit 1866f7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sde_indexing_helper/static/js/delta_url_list.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,8 @@ function handleShowAffectedURLsListButtonClick() {
23102310
const urlCount = $(this).prev('.urlCount').text().trim();
23112311

23122312
// Update modal title and pattern info
2313-
$("#affectedURLsModalTitle").text(`Affected ${urlType} URLs`);
2313+
const capitalize = str => str[0].toUpperCase() + str.slice(1);
2314+
$("#affectedURLsModalTitle").text(`Affected ${capitalize(urlType)} URLs`);
23142315
$("#patternInfo").text(`
23152316
${urlCount} affected URL${urlCount === '1' ? '' : 's'} for ${patternType} pattern:
23162317
`).append($('<span>').css('color', '#65B1EF').text(patternName));

0 commit comments

Comments
 (0)