From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:26:15 +0800
Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改

---
 PAMapp/node_modules/clean-css/lib/options/compatibility.js |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/PAMapp/node_modules/clean-css/lib/options/compatibility.js b/PAMapp/node_modules/clean-css/lib/options/compatibility.js
index 8e6a119..357e0a1 100644
--- a/PAMapp/node_modules/clean-css/lib/options/compatibility.js
+++ b/PAMapp/node_modules/clean-css/lib/options/compatibility.js
@@ -141,12 +141,14 @@
 
 function merge(source, target) {
   for (var key in source) {
-    var value = source[key];
+    if (Object.prototype.hasOwnProperty.call(source, key)) {
+      var value = source[key];
 
-    if (typeof value === 'object' && !Array.isArray(value)) {
-      target[key] = merge(value, target[key] || {});
-    } else {
-      target[key] = key in target ? target[key] : value;
+      if (Object.prototype.hasOwnProperty.call(target, key) && typeof value === 'object' && !Array.isArray(value)) {
+        target[key] = merge(value, target[key] || {});
+      } else {
+        target[key] = key in target ? target[key] : value;
+      }
     }
   }
 

--
Gitblit v1.8.0