Merge pull request #742 from Safelite/feature/richardson/SSR-1342.3

string on 1 line.
This commit is contained in:
brich1212safe 2024-06-07 12:34:36 -04:00 committed by GitHub
commit a8f6f8a26f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,8 +250,8 @@ function mapStringToModal(str) {
);
const splitParams = params.split(',');
const bodyText = `<a href="#" modalTarget="${splitParams[0]}" class="modal-text">
<span class="sr-only">Link:</span>${splitParams[1]}</a>`;
const bodyText =
`<a href="#" modalTarget="${splitParams[0]}" class="modal-text"><span class="sr-only">Link:</span>${splitParams[1]}</a>`;
let returnVal = str.replace(linkToReplace, bodyText);