[Tracker-discuss] [issue390] NOSY can't be changed when an username has an space on it / usernames with spaces!

Jesús Cea Avión metatracker at psf.upfronthosting.co.za
Fri Apr 8 05:06:48 CEST 2011


Jesús Cea Avión <jcea at jcea.es> added the comment:

Enzo, your fix is

-    var nosy_text = nosy.value.replace(/\s+/g, '');
+    var nosy_text = nosy.value.replace(/,\s+/g, ',');

I don't think it is complete. You can have spaces before the comma, or at the begining/end of the nosy.

Maybe the easiest way would be to forget about regex and simply do something like

nosy_text = ",".join([i.strip() for i in nosy_text.split(",")])

----------
status: resolved -> chatting

_______________________________________________________
PSF Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue390>
_______________________________________________________


More information about the Tracker-discuss mailing list