.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('-')+']'}
