Skip to content

Commit

Permalink
Updated regex to have the option of adding an extension after @compan…
Browse files Browse the repository at this point in the history
…yname but before /browserslist-config (#816)
  • Loading branch information
boucodes committed Jan 26, 2024
1 parent 525d787 commit a3ba90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js
Expand Up @@ -7,7 +7,7 @@ var BrowserslistError = require('./error')

var IS_SECTION = /^\s*\[(.+)]\s*$/
var CONFIG_PATTERN = /^browserslist-config-/
var SCOPED_CONFIG__PATTERN = /@[^/]+\/browserslist-config(-|$|\/)/
var SCOPED_CONFIG__PATTERN = /@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/
var TIME_TO_UPDATE_CANIUSE = 6 * 30 * 24 * 60 * 60 * 1000
var FORMAT =
'Browserslist config should be a string or an array ' +
Expand Down

0 comments on commit a3ba90b

Please sign in to comment.