From 45b40deb4356047e59f597228d85261eff083591 Mon Sep 17 00:00:00 2001 From: Joel Rothschild Date: Tue, 1 Sep 2015 15:37:53 -0400 Subject: [PATCH] Phone format is required to be nnn-nnn-nnnn. Added match/replace options per https://github.com/unitedstates/contact-congress/issues/1462#issuecomment-112533569 --- members/H001061.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/members/H001061.yaml b/members/H001061.yaml index 6d723b24b..2247e804d 100644 --- a/members/H001061.yaml +++ b/members/H001061.yaml @@ -30,8 +30,11 @@ contact_form: required: Yes - name: field_62cac646-c6c0-4b48-8637-86b77d2c9700 selector: "#field_62cac646-c6c0-4b48-8637-86b77d2c9700" - value: "$PHONE_PARENTHESES" + value: "$PHONE" required: true + options: + match: "([0-9]{3})([0-9]{3})([0-9]{4})" + replace: "$1-$2-$3" - name: field_4a2966d5-e9ea-4195-b486-b5d3d04d185a selector: "#field_4a2966d5-e9ea-4195-b486-b5d3d04d185a" value: "$EMAIL"