function isRemoteGlob
isRemoteGlob(input: string): boolean

Whether an input carries glob metacharacters — the same test the local walk makes.

Its own export because a URL's query string is full of characters that look like a glob to a casual regex, and the one place that decides this should be the one place anybody reads.

import { isRemoteGlob } from './remote-inputs.ts';

isRemoteGlob('https://x/tests/*-test.js'); // true
isRemoteGlob('https://x/tests/a-test.js?v=2'); // false — a query is not a pattern

Parameters

input: string

Return Type

boolean

Usage

import { isRemoteGlob } from "lib/setup/remote-inputs.ts";