Skip to content

Commit

Permalink
/2
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jun 27, 2024
1 parent 9a4635e commit efc0373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default async function handle(request, response) {
}

const bundle = memoize(async (nameRequest, globalName) => {
if (/[^a-z\d@/.]/i.test(nameRequest)) {
if (/[^a-z\d@/.-]/i.test(nameRequest)) {
throw new UnprocessableError('Invalid package name');
}

Expand Down

0 comments on commit efc0373

Please sign in to comment.