()
| 371 | 'use strict' |
| 372 | |
| 373 | function getCloneCmd() { |
| 374 | const match = location.pathname.match(/^\/([^/]+)\/([^/]+)(\/|$)/) |
| 375 | if (!match) return null |
| 376 | return `git clone --recurse-submodules https://github.com/${match[1]}/${match[2]}.git` |
| 377 | } |
| 378 | |
| 379 | function copyCloneCmd(cmd) { |
| 380 | if (!cmd) return |