Files

10 lines
342 B
JavaScript
Raw Permalink Normal View History

2026-03-22 20:00:13 +00:00
import { isRemotePath as _externalIsRemotePath } from "@astrojs/internal-helpers/path";
export * from "@astrojs/internal-helpers/path";
const URL_PROTOCOL_REGEX = /^(?:(?:http|ftp|https|ws):?\/\/|\/\/)/;
function isCoreRemotePath(path) {
return URL_PROTOCOL_REGEX.test(path) || _externalIsRemotePath(path);
}
export {
isCoreRemotePath
};