Skip to content

Commit

Permalink
VACMS-14238 Improve parsing of VBA phone numbers in migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
swirtSJW committed Dec 19, 2023
1 parent a00f483 commit 445ddd1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 18 additions & 2 deletions config/sync/migrate_plus.migration.va_node_facility_vba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,25 @@ process:
field_phone_number:
-
plugin: str_replace
search:
- (
- )
- X
- ' '
- ext
- .
- ','
- Ext
replace:
- ''
- '-'
- x
- ''
- Ext
- ''
- ''
- x
source: phone-main
search: Ext.
replace: x
-
plugin: explode
delimiter: x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ process:
field_phone_number:
-
plugin: str_replace
search: ['(', ')', 'X', ' ', 'ext', '.', ',', 'Ext']
replace: ['', '-', 'x', '', 'Ext', '', '', 'x']
source: phone-main
search: Ext.
replace: x
-
plugin: explode
delimiter: x
Expand Down

0 comments on commit 445ddd1

Please sign in to comment.