Commits

Anonymous committed 77af804

#390: Fix regex to allow names with spaces.

  • Participants
  • Parent commits 84e0ab8

Comments (0)

Files changed (1)

File html/issue.item.js

 function add_to_nosy(user) {
     var add_me_button = document.getElementById('add_me_to_nosy');
     var nosy = document.getElementsByName('nosy')[0];
-    var nosy_text = nosy.value.replace(/\s+/g, '');
+    var nosy_text = nosy.value.replace(/,\s+/g, ',');
     if (nosy_text == "") {
         // nosy_list is empty, add the user
         nosy.value = user;