text: // copied from https://stackoverflow.com/a/5582715/6091624
  export function containsAny(str, substrings) {
      for (var i = 0; i != substrings.length; i++) {
          var substring = substrings[i];
          if (str.indexOf(substring) != - 1) {
              return substring;
          }
      }
      return null; 
  }