mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-17 23:00:10 -07:00
Fixed addCommas bug
This commit is contained in:
parent
8453a9bc98
commit
08ea29291c
@ -318,9 +318,9 @@ mailHops.lookup = function(route){
|
|||||||
function addCommas(nStr)
|
function addCommas(nStr)
|
||||||
{
|
{
|
||||||
nStr += '';
|
nStr += '';
|
||||||
x = nStr.split('.');
|
var x = nStr.split('.');
|
||||||
x1 = x[0];
|
var x1 = x[0];
|
||||||
x2 = x.length > 1 ? '.' + x[1] : '';
|
var x2 = x.length > 1 ? '.' + x[1] : '';
|
||||||
var rgx = /(\d+)(\d{3})/;
|
var rgx = /(\d+)(\d{3})/;
|
||||||
while (rgx.test(x1)) {
|
while (rgx.test(x1)) {
|
||||||
x1 = x1.replace(rgx, '$1' + ',' + '$2');
|
x1 = x1.replace(rgx, '$1' + ',' + '$2');
|
||||||
|
BIN
mailhops-0.1.xpi
BIN
mailhops-0.1.xpi
Binary file not shown.
BIN
mailhops-0.2.xpi
BIN
mailhops-0.2.xpi
Binary file not shown.
BIN
mailhops-0.3.xpi
BIN
mailhops-0.3.xpi
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mailhops-0.4.xpi
BIN
mailhops-0.4.xpi
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user