Renamed "digits" to "trailing" (#3436).
This commit is contained in:
parent
7c3162b5e0
commit
9347f007f4
|
|
@ -562,7 +562,7 @@ var nameGenerator = (function() {
|
||||||
}
|
}
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
var digits = init("0123456789");
|
var trailing = init("0123456789");
|
||||||
var leading = init("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_");
|
var leading = init("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_");
|
||||||
var chars, frequency;
|
var chars, frequency;
|
||||||
function reset() {
|
function reset() {
|
||||||
|
|
@ -577,7 +577,7 @@ var nameGenerator = (function() {
|
||||||
return frequency[b] - frequency[a];
|
return frequency[b] - frequency[a];
|
||||||
}
|
}
|
||||||
nameGenerator.sort = function() {
|
nameGenerator.sort = function() {
|
||||||
chars = leading.sort(compare).concat(digits.sort(compare));
|
chars = leading.sort(compare).concat(trailing.sort(compare));
|
||||||
};
|
};
|
||||||
nameGenerator.reset = reset;
|
nameGenerator.reset = reset;
|
||||||
reset();
|
reset();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user