code: function hasZeroOrOneAsteriskCharacter(str) {
          var seenAsterisk = false;
          for (var i = 0; i < str.length; i++) {
              if (str.charCodeAt(i) === 42 /* asterisk */) {
                  if (!seenAsterisk) {
                      seenAsterisk = true;
                  }
                  else {
                      // have already seen asterisk
                      return false;
                  }
              }
          }
          return true;
      }
docs: /* @internal