By quietone on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.2.x
Introduced in version:
9.2.0
Issue links:
Description:
The regular expression used in the MachineName migrate process plugin is now configurable, using the 'replace_pattern' property.
Before
The field was not configurable and the regular expression used to replace characters was, /[^a-z0-9_]+/
process:
foo:
plugin: machine_name
source: foo
If the value of foo was 'the.bar' for would be set to 'the_bar'.
After
process:
foo:
plugin: machine_name
source: foo
replace_pattern: '/[^a-z0-9_.]+/'In this example the replace pattern is changed to allow a '.' character. If the value of foo was 'the.bar' foo would be set to 'the.bar'.
Impacts:
Module developers