Skip to content

Commit

Permalink
Remove unnecessary dot escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Oct 22, 2020
1 parent cf31613 commit 6f5f09c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/build/plugins/collect-plugins.ts
Expand Up @@ -187,14 +187,14 @@ async function _collectPlugins(
// next-plugin-[name]
const filteredDeps = dependencies.filter((name) => {
return (
name.match(/^@next\/plugin-[a-z0-9\.-_]+/) ||
name.match(/^next-plugin-[a-z0-9\.-_]+/) ||
name.match(/^@next\/plugin-[a-z0-9.-_]+/) ||
name.match(/^next-plugin-[a-z0-9.-_]+/) ||
/**
* URL-safe characters (dot, dash, underscore), lower-case only, no leading dots or underscores.
* https://docs.npmjs.com/using-npm/scope.html
* https://docs.npmjs.com/files/package.json
*/
name.match(/^@[a-z0-9-][a-z0-9\.-_]*\/next-plugin-[a-z0-9\.-_]+/)
name.match(/^@[a-z0-9-][a-z0-9.-_]*\/next-plugin-[a-z0-9.-_]+/)
)
})

Expand Down

0 comments on commit 6f5f09c

Please sign in to comment.