@bolttech/form-engine-core 0.0.1-beta.35 → 0.0.1-beta.36

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.
Files changed (2) hide show
  1. package/index.esm.js +4 -3
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -730,10 +730,11 @@ const custom = (value, masks) => {
730
730
  if (!masks.custom || !value) return value;
731
731
  let mask = '';
732
732
  let index = 0;
733
+ let convertedValue = value.replace(/[^\w\s]/gi, '');
733
734
  for (let i = 0; i < masks.custom.length; i++) {
734
735
  if (masks.custom[i] === '#') {
735
- if (index < value.length) {
736
- mask += value[index];
736
+ if (index < convertedValue.length) {
737
+ mask += convertedValue[index];
737
738
  index++;
738
739
  } else {
739
740
  break;
@@ -3343,7 +3344,7 @@ class FormCore {
3343
3344
  /*
3344
3345
  * check with João the need for a global mount event for the form
3345
3346
  * to avoid not displaying this message in some cases (AsFormField)
3346
- * sugestion: create subscriber to targetField.ON_FIELD_MOUNT
3347
+ * suggestion: create subscriber to targetField.ON_FIELD_MOUNT
3347
3348
  */
3348
3349
  console.warn(`failed to update visibility onto field ${field}`);
3349
3350
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine-core",
3
- "version": "0.0.1-beta.35",
3
+ "version": "0.0.1-beta.36",
4
4
  "module": "./index.esm.js",
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",