@hipay/hipay-material-ui 2.0.0-beta.60 → 2.0.0-beta.61

Sign up to get free protection for your applications and to get access to all the features.
package/utils/helpers.js CHANGED
@@ -310,7 +310,7 @@ function getNextItemSelectable(node, direction) {
310
310
 
311
311
 
312
312
  function foldAccents(toFold) {
313
- return toFold.replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])|([œ])/g, function (str, a, c, e, i, n, o, s, u, y, ae, oe) {
313
+ return toFold.replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])|([œ])|([+])|([\\])|([\[])|([\]])|([\(])|([\)])|([?])|([*])/g, function (str, a, c, e, i, n, o, s, u, y, ae, oe, plus, backSlash, lc, rc, lp, rp, interogation, star) {
314
314
  if (a) return 'a';
315
315
  if (c) return 'c';
316
316
  if (e) return 'e';
@@ -322,6 +322,14 @@ function foldAccents(toFold) {
322
322
  if (y) return 'y';
323
323
  if (ae) return 'ae';
324
324
  if (oe) return 'oe';
325
+ if (plus) return '\\+';
326
+ if (backSlash) return '\\\\';
327
+ if (lc) return '\\[';
328
+ if (rc) return '\\]';
329
+ if (lp) return '\\(';
330
+ if (rp) return '\\)';
331
+ if (interogation) return '\\?';
332
+ if (star) return '\\*';
325
333
  return str;
326
334
  });
327
335
  }