Browse Source

参数不再大小写敏感

世祺 11 months ago
parent
commit
757b8221ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/worker.js

+ 1 - 1
src/worker.js

@@ -50,7 +50,7 @@ function parseArg(arg, default_conf) {
 	let str_arg = arg.reduce((obj, str) => {
 		let pair = str.split('_');
 		if (pair.length === 2) {
-			obj[pair[0]] = pair[1];
+			obj[pair[0].toLowerCase()] = pair[1].toLowerCase();
 		}
 		return obj;
 	}, {});