Last Updated 6 years ago
Skipping empty values and appending values
Sometimes we want to skip empty values, while appending something to those that contain a string (the 'prepend' and 'append' options). Unfortunately, if a field in the file is empty and we enter something in the 'prepend' or 'append' field, the module will think that the file actually contained the appended value. This image shows it best:The solution in this situation is quite simple. Instead of entering values in 'append' and 'prepend', use a replacer.
Find: /^(.+)$/
Replace with: https://example.com/image/$1
The next image explains everything: