globToRegex

private fun globToRegex(globPattern: String, dotglob: Boolean): Regex