回答編集履歴
1
.
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
let result = {};
|
9
9
|
value.split("; ").forEach((v, i) => {
|
10
10
|
v = v.match(/^(.+?)(?:=(.*))?$/);
|
11
|
-
if(i
|
11
|
+
if(i) {
|
12
12
|
result[v[1]] = v[2] != void 0 ? decodeURIComponent(v[2]) : true;
|
13
13
|
} else {
|
14
14
|
result.name = v[1];
|