{"version":3,"file":"is-valid-path.mjs","names":[],"sources":["../src/is-valid-path.ts"],"sourcesContent":["/**\n * Checks for invalid characters within the provided path.\n *\n * @param path The URL path.\n *\n * @example\n * ```js\n * const isValid = isValidPath( 'test/path/' ); // true\n * const isNotValid = isValidPath( '/invalid?test/path/' ); // false\n * ```\n *\n * @return True if the argument contains a valid path\n */\nexport function isValidPath( path: string ): boolean {\n\tif ( ! path ) {\n\t\treturn false;\n\t}\n\treturn /^[^\\s#?]+$/.test( path );\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAgB,YAAa,MAAwB;CACpD,IAAK,CAAE,MACN,OAAO;CAER,OAAO,aAAa,KAAM,IAAK;AAChC"}