rigjs
Version:
A multi-repos dev tool based on yarn and git.Rigjs is intended to be the simplest way to develop,share and deliver codes between different developers or different projects.
22 lines (21 loc) • 493 B
text/typescript
/**
* @ignore
* @Description nothing
* @author Wang Bo (ralwayne@163.com)
* @date 2020/10/10 3:57 PM
*/
// `^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)`,
const gitURL = /(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/;
const matchGitName = /^(git|http).*\/(.*)(\.git)$/;
const path = /^(\/\w+){0,2}\/?$/;
/**
* 文字下划线中划线
* @type {RegExp}
*/
const dynamicDir = /(^\[[\w\-]+\]$)|(^\{[\w\-]+\}$)/
export default {
gitURL,
path,
dynamicDir,
matchGitName
}