Upgrade node.js to latest version. (#3935)

This commit is contained in:
Tingluo Huang
2025-07-07 11:47:48 -04:00
committed by GitHub
parent 5969cbe208
commit 20912234a5
3 changed files with 9 additions and 8 deletions

View File

@@ -3299,7 +3299,7 @@ function expand(str, isTop) {
var isOptions = m.body.indexOf(',') >= 0;
if (!isSequence && !isOptions) {
// {a},b}
if (m.post.match(/,.*\}/)) {
if (m.post.match(/,(?!,).*\}/)) {
str = m.pre + '{' + m.body + escClose + m.post;
return expand(str);
}