Explorar el Código

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

Jikkai Xiao hace 7 años
padre
commit
7158ddc578
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/utils/util.js

+ 1 - 1
src/utils/util.js

@@ -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, '\\$&');