Skip to content

Commit

Permalink
refactor: first character judgment replacement regexp (#18658)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Nov 15, 2024
1 parent 74221c3 commit 58f1df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/rollupLicensePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function sortLicenses(licenses: Set<string>) {
let withParenthesis: string[] = []
let noParenthesis: string[] = []
licenses.forEach((license) => {
if (/^\(/.test(license)) {
if (license[0] === '(') {
withParenthesis.push(license)
} else {
noParenthesis.push(license)
Expand Down

0 comments on commit 58f1df3

Please sign in to comment.