best-globals 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/best-globals.js +3 -3
- package/package.json +2 -2
package/best-globals.js
CHANGED
|
@@ -785,8 +785,8 @@ bestGlobals.forOrder = function forOrder(text){
|
|
|
785
785
|
var normal=text.toString()
|
|
786
786
|
.replace(letterTranslatorRegexp, function(letter){ return letterTranslator[letter]; })
|
|
787
787
|
.replace(
|
|
788
|
-
/([a-z]+)|((-?)0*(0|[1-9][0-9]*))|([^a-z0-9])/ig,
|
|
789
|
-
function(t, letters, nums, sign, integer, others){
|
|
788
|
+
/([a-z]+)|((-?)0*(0|[1-9][0-9]*)(\.[0-9]+)?)|([^a-z0-9])/ig,
|
|
789
|
+
function(t, letters, nums, sign, integer, decimals, others){
|
|
790
790
|
if(letters){
|
|
791
791
|
main.push(' '+letters.toLowerCase());
|
|
792
792
|
}
|
|
@@ -799,7 +799,7 @@ bestGlobals.forOrder = function forOrder(text){
|
|
|
799
799
|
}else{
|
|
800
800
|
negative = false;
|
|
801
801
|
}
|
|
802
|
-
main.push(' '+(negative?'A':'')+String.fromCharCode(65+coalesce(integer,'').length)+coalesce(integer,''));
|
|
802
|
+
main.push(' '+(negative?'A':'')+String.fromCharCode(65+coalesce(integer,'').length)+coalesce(integer,'')+coalesce(decimals,''));
|
|
803
803
|
}
|
|
804
804
|
canBeNegative=false;
|
|
805
805
|
if(others){
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "best-globals",
|
|
3
3
|
"description": "common global function and constants - i.e. changes",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/best-globals",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"karma-mocha": "^2.0.1",
|
|
32
32
|
"nyc": "~17.0.0",
|
|
33
33
|
"mini-tools": "^1.12.1",
|
|
34
|
-
"mocha": "~10.
|
|
34
|
+
"mocha": "~10.5.2",
|
|
35
35
|
"pg-promise-strict": "^1.4.0",
|
|
36
36
|
"require-bro": "^0.3.1",
|
|
37
37
|
"sinon": "~18.0.0",
|