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/has-flag/index.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/PAMapp/node_modules/has-flag/index.js b/PAMapp/node_modules/has-flag/index.js
index 5139728..b6f80b1 100644
--- a/PAMapp/node_modules/has-flag/index.js
+++ b/PAMapp/node_modules/has-flag/index.js
@@ -1,8 +1,8 @@
 'use strict';
-module.exports = (flag, argv) => {
-	argv = argv || process.argv;
+
+module.exports = (flag, argv = process.argv) => {
 	const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
-	const pos = argv.indexOf(prefix + flag);
-	const terminatorPos = argv.indexOf('--');
-	return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
+	const position = argv.indexOf(prefix + flag);
+	const terminatorPosition = argv.indexOf('--');
+	return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
 };

--
Gitblit v1.8.0