unjs / giget

✨ Download templates and git repositories with pleasure!
MIT License
448 stars 37 forks source link

Missing escape slash on RegEx in Utils #183

Open moleCuleFFF opened 2 weeks ago

moleCuleFFF commented 2 weeks ago

Environment

Node 18.20.2

Reproduction

Regular expression has error in it resulting in an error when running parseGitURI. https://github.com/unjs/giget/blob/e22b491fd70bee0c23b45733132166fe1d085aa1/src/_utils.ts#L49

Describe the bug

Missing escape slash in RegEx https://github.com/unjs/giget/blob/e22b491fd70bee0c23b45733132166fe1d085aa1/src/_utils.ts#L49

Additional context

No response

Logs

No response

moleCuleFFF commented 2 weeks ago

image