import { globToRegex } from "https://deno.land/x/earthstar@v10.2.0/src/entries/universal.ts";
A helper used by globToQueryAndRegex -- see that function for details.
This function simply turns a glob string into a regex. The other function calls this one, but sometimes discards the regex if it's not needed because it can make a good enough Earthstar query.