minhnt-dev: fix bugs
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
||||
const isEmpty = (value : any) => {
|
||||
return (
|
||||
value == null || // From standard.js: Always use === - but obj == null is allowed to check null || undefined
|
||||
(typeof value === 'object' && Object.keys(value).length === 0) ||
|
||||
(typeof value === 'string' && value.trim().length === 0)
|
||||
value == null || // From standard.js: Always use === - but obj == null is allowed to check null || undefined
|
||||
(typeof value === 'object' && Object.keys(value).length === 0) ||
|
||||
(typeof value === 'string' && value.trim().length === 0)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -49,6 +49,7 @@ const regexParseString = (key: String) => {
|
||||
const pattern = `${key}\\[(.*?)\\]`;
|
||||
return new RegExp(pattern);
|
||||
}
|
||||
|
||||
const regexParseStringColon = (key: String, suffix: string = ']') => {
|
||||
const pattern = `${key}:\\s*([^;\\]]+)`;
|
||||
return new RegExp(pattern);
|
||||
@@ -232,8 +233,6 @@ const getInputValue = (inputValue: any, typeGet: 'OBJECT' | 'ARRAY') => {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
export {
|
||||
parseDataQueryFormString,
|
||||
parseDataQueryFormObject,
|
||||
|
||||
Reference in New Issue
Block a user