From e24ced0d39186709f30a0af207d8254b1c3b2aac Mon Sep 17 00:00:00 2001 From: bugron Date: Thu, 10 Sep 2015 16:15:10 +0400 Subject: [PATCH] fixes user agent semicolon replacement --- client/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.js b/client/main.js index fe46956142c..20bf9c250d3 100644 --- a/client/main.js +++ b/client/main.js @@ -83,7 +83,7 @@ $(document).ready(function() { var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue.'; textMessage += ' User Agent is: ' + navigator.userAgent + '.'; textMessage += ' Please describe how to reproduce this issue, and include links to screenshots if possible.%0A%0A'; - textMessage = textMessage.replace(';', ','); //GitHub cuts User Agent text because of ';' symbol so I just replace it with ',' + textMessage = textMessage.replace(/;/g, ','); $('#issue-modal').modal('hide'); window.open(textMessage, '_blank'); });