diff --git a/awx/static/api/api.js b/awx/static/api/api.js index 67053ae2f6..98d803ad9f 100644 --- a/awx/static/api/api.js +++ b/awx/static/api/api.js @@ -14,7 +14,7 @@ $(function() { $('span.str').each(function() { var s = $(this).html(); if (s.match(/^\"\/.+\/\"$/) || s.match(/^\"\/.+\/\?.*\"$/)) { - $(this).html('"' + s.replace(/\"/g, '') + '"'); + $(this).html('"' + s.replaceAll('"', '') + '"'); } }); @@ -27,7 +27,7 @@ $(function() { }).each(function() { $(this).nextUntil('span.pun:contains("]")').filter('span.str').each(function() { if ($(this).text().match(/^\".+\"$/)) { - var s = $(this).text().replace(/\"/g, ''); + var s = $(this).text().replaceAll('"', ''); $(this).html('"' + s + '"'); } else if ($(this).text() !== '"') {