aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-01-24 17:08:52 -0300
committerSebastian <sebasjm@gmail.com>2022-01-24 17:33:25 -0300
commit1e1e297d1a158f7e61606ac5822c08a70d9a2cb8 (patch)
tree48bcbadc1443aed79c63712dcf303645ba87a730
parent26ee8e3c717701be9170d45da94c46ae850e1f21 (diff)
add autocomplete field for #7086
-rw-r--r--packages/anastasis-core/src/anastasis-data.ts4
-rw-r--r--packages/anastasis-core/src/reducer-types.ts1
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/anastasis-core/src/anastasis-data.ts b/packages/anastasis-core/src/anastasis-data.ts
index c67883a2e..924f4103d 100644
--- a/packages/anastasis-core/src/anastasis-data.ts
+++ b/packages/anastasis-core/src/anastasis-data.ts
@@ -339,6 +339,7 @@ export const anastasisData = {
"validation-regex":
"^(756).[0-9]{4}.[0-9]{4}.[0-9]{2}|(756)[0-9]{10}$",
"validation-logic": "CH_AHV_check",
+ autocomplete: "???.????.????.??"
},
],
},
@@ -693,7 +694,8 @@ export const anastasisData = {
},
widget: "anastasis_gtk_ia_ssn_us",
uuid: "310a138c-b0b7-4985-b8b8-d00e765e9f9b",
- "validation-regex": "^d{3}-d{2}-d{4}$",
+ "validation-regex": "^[0-9]{3}-[0-9]{2}-[0-9]{4}$",
+ autocomplete: "???-??-????",
},
],
},
diff --git a/packages/anastasis-core/src/reducer-types.ts b/packages/anastasis-core/src/reducer-types.ts
index 3e6d6c852..8d375552f 100644
--- a/packages/anastasis-core/src/reducer-types.ts
+++ b/packages/anastasis-core/src/reducer-types.ts
@@ -144,6 +144,7 @@ export interface UserAttributeSpec {
optional?: boolean;
"validation-regex": string | undefined;
"validation-logic": string | undefined;
+ autocomplete?: string;
}
export interface RecoveryInternalData {