Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

358 B
Raw Blame
/**
 * True when the URL spells a query or fragment, including an empty one.
 * `URL.search` and `URL.hash` are empty both when that component is absent
 * and when it is present but empty, so href is the spelling that keeps them apart.
 */
export const urlDeclaresQueryOrFragment = (url: URL): boolean =>
  url.href.includes("?") || url.href.includes("#");