Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
var
www
gtechmarathon2026.bitkit.dk
httpdocs
node_modules
tailwindcss
src
util
File Content:
toPath.js
/** * Parse a path string into an array of path segments. * * Square bracket notation `a[b]` may be used to "escape" dots that would otherwise be interpreted as path separators. * * Example: * a -> ['a'] * a.b.c -> ['a', 'b', 'c'] * a[b].c -> ['a', 'b', 'c'] * a[b.c].e.f -> ['a', 'b.c', 'e', 'f'] * a[b][c][d] -> ['a', 'b', 'c', 'd'] * * @param {string|string[]} path **/ export function toPath(path) { if (Array.isArray(path)) return path let openBrackets = path.split('[').length - 1 let closedBrackets = path.split(']').length - 1 if (openBrackets !== closedBrackets) { throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`) } return path.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean) }
Edit
Download
Unzip
Chmod
Delete