[allOf] separators customization
Posted: 14 May 2020, 17:31
Struggling with an aspect of allOf, separators customization. By default it limits with brackets and puts a comma and a space in between.
.join() custom function acts on comma+space but loses the brackets on both ends.
How to keep the brackets with a custom .join() ? The way to combine variables and separators from the real world examples above doesn't work like usual it seems.
e.g. I'm trying to retain video source if BluRay, video format if 1080p or 720p, have brackets on both ends and separate with dash
As long as at least one variable returns it works, but it'll keep the brackets if none return. Might as well put the brackets outside the expression because it's failing completely what i'm trying to do 
.join() custom function acts on comma+space but loses the brackets on both ends.
How to keep the brackets with a custom .join() ? The way to combine variables and separators from the real world examples above doesn't work like usual it seems.
e.g. I'm trying to retain video source if BluRay, video format if 1080p or 720p, have brackets on both ends and separate with dash
Code: Select all
{' ['+allOf{vs.match(/BluRay/)}{vf.match(/720[pP]|1080[pP]/)}.join('-')+']'}
