Skip to content

Commit 7b022de

Browse files
committed
pm2@6.0.10
1 parent d88b735 commit 7b022de

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
## 6.0.10
3+
4+
- revert #5971 #6031
5+
26
## 6.0.9
37

48
- updates all typescript definitions

lib/tools/Config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ Config._valid = function(key, value, sch){
200200
// If first type is Array, but current is String, try to split them.
201201
if(scht.length > 1 && type != scht[0] && type == '[object String]'){
202202
if(scht[0] == '[object Array]') {
203+
value = value.split(/([\w\-]+\="[^"]*")|([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s/)
203204
// unfortunately, js does not support lookahead RegExp (/(?<!\\)\s+/) now (until next ver).
204-
value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
205+
//value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
205206
.filter(function(v){
206207
return v && v.trim();
207208
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pm2",
33
"preferGlobal": true,
4-
"version": "6.0.9",
4+
"version": "6.0.10",
55
"engines": {
66
"node": ">=16.0.0"
77
},

0 commit comments

Comments
 (0)