Commit 7158ddc5 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by hetech

Select & Cascader: add default value for query string (#12322)

parent 6f08e941
......@@ -83,4 +83,4 @@ export const valueEquals = (a, b) => {
return true;
};
export const escapeRegexpString = value => String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
export const escapeRegexpString = (value = '') => String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment