mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
pm2@6.0.10
This commit is contained in:
parent
d88b73560c
commit
7b022de8fd
@ -1,4 +1,8 @@
|
||||
|
||||
## 6.0.10
|
||||
|
||||
- revert #5971 #6031
|
||||
|
||||
## 6.0.9
|
||||
|
||||
- updates all typescript definitions
|
||||
|
||||
@ -200,8 +200,9 @@ Config._valid = function(key, value, sch){
|
||||
// If first type is Array, but current is String, try to split them.
|
||||
if(scht.length > 1 && type != scht[0] && type == '[object String]'){
|
||||
if(scht[0] == '[object Array]') {
|
||||
value = value.split(/([\w\-]+\="[^"]*")|([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s/)
|
||||
// unfortunately, js does not support lookahead RegExp (/(?<!\\)\s+/) now (until next ver).
|
||||
value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
|
||||
//value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
|
||||
.filter(function(v){
|
||||
return v && v.trim();
|
||||
});
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "pm2",
|
||||
"preferGlobal": true,
|
||||
"version": "6.0.9",
|
||||
"version": "6.0.10",
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user