mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
build: refactor linting
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export function formatTag(tag: string) {
|
||||
// eslint-disable-next-line unicorn/no-unsafe-regex
|
||||
const parsed = /(?:^@.*\/(?<package>.*)@v?)?(?<semver>\d+.\d+.\d+)-?.*/.exec(tag);
|
||||
const parsedPackage = /(?<package>.*)@v?-?.*/.exec(tag);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user