ding-trans
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -7,3 +7,3 @@ #! /usr/bin/env node | ||
const argv = require("yargs").argv; | ||
const queryStr = encodeURI(argv._.join(" ")); | ||
let queryStr = encodeURI(argv._.join(" ")); | ||
@@ -30,2 +30,4 @@ // 无参数,或帮助 | ||
} | ||
// 对驼峰的连续单词进行分割后转义 | ||
queryStr = encodeURI(queryStr.replace(/([A-Z])/g, " $1").toLowerCase()); | ||
//查词 | ||
@@ -32,0 +34,0 @@ sendInfo(queryStr); |
{ | ||
"name": "ding-trans", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "a translation cli", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4218
89