Closed GoogleCodeExporter closed 9 years ago
Not sure if it's the proper fix or a hack, but my preliminary testing suggests
that a
solution is possible by adding
[178] num = num.replace("(", "(-");
immediately before
[179] num = num.replace(settings.regex, '');
Original comment by chdr...@yahoo.com
on 17 Dec 2009 at 3:14
Seems to working for me so far, but I made an additional change so that it
works for
both asNumber and toNumber.
I changed:
[154] var method = $(this).is('input, select, textarea') ? 'val' : 'html';
[155] $(this)[method]($(this)[method]().replace(settings.regex, ''));
to
var method = $(this).is('input, select, textarea') ? 'val' : 'html';
var num = $(this)[method]();
num = num.replace("(", "(-");
num = num.replace(settings.regex, '');
$(this)[method](num);
Seems you would want to maybe make it part of the core regex statment, but
seems to
be working so far. Thanks for the help.
Original comment by keit...@gmail.com
on 17 Dec 2009 at 7:05
[deleted comment]
Just checked in Unit tests that prove this as valid. Unfortunately my internet
connection is spotty I'll resolve the issue shortly based on these tests.
Original comment by bdewe...@hotmail.com
on 18 Dec 2009 at 3:39
This has been fixed in the trunk an will be released with v1.3
Original comment by bdewe...@hotmail.com
on 2 Jan 2010 at 4:11
Leaving accepted until v1.3 is released
Original comment by bdewe...@hotmail.com
on 2 Jan 2010 at 4:11
released with v1.3
Original comment by bdewe...@hotmail.com
on 2 Jan 2010 at 4:36
Original issue reported on code.google.com by
keit...@gmail.com
on 15 Dec 2009 at 2:34