zmdms-utils 0.0.94 → 0.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/common.js +3 -0
- package/package.json +1 -1
- package/src/common.ts +3 -0
package/dist/es/common.js
CHANGED
package/package.json
CHANGED
package/src/common.ts
CHANGED
|
@@ -142,6 +142,9 @@ export function parseQueryParams(url: string): { [key: string]: string } {
|
|
|
142
142
|
* @returns 转换过后的结果
|
|
143
143
|
*/
|
|
144
144
|
export function unescapeString(input: string): string {
|
|
145
|
+
if (typeof input !== "string") {
|
|
146
|
+
return input;
|
|
147
|
+
}
|
|
145
148
|
if (!input) {
|
|
146
149
|
return "";
|
|
147
150
|
}
|