📅  最后修改于: 2022-03-11 15:04:00.888000             🧑  作者: Mango
let int = 0
let cleanupUrl = ""
let url = 'github.com/gin-gonic/gin'
int = url.match(/[/]/g).length
if(int === 2) {
cleanupUrl = url.replace(/.*[/]/g, '')
}
console.log(cleanupUrl)