function oneStar(dotfile) {
  return dotfile ? '(?!' + dotfileGlob + ')(?=.)' + star : nodot + star;
}
Create a regex for `*`.

If `dot` is true, or the pattern does not begin with
a leading star, then return the simpler regex.