isUnsafeConcat = s => (s = s.charCodeAt(s.match(SKIP_COMMENTS_RE)[0].length)) === 45/*"-"*/
  || s === 43/*"+"*/
  || s === 91/*"["*/
  || s === 40
Not using a combined regex to check for the chars to avoid catastrophic backtracking