Skip to content

Commit

Permalink
fix: Cannot read properties of undefined (reading 'join')
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Mar 11, 2023
1 parent 8f0fd7e commit e27aa5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variants/breakpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const variantBreakpoints: Variant<Theme> = {
= Object.entries(resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx])
for (const [point, size, idx] of variantEntries) {
if (!regexCache[point])
regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join('|')}))`)
regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}[:-])`)

const match = matcher.match(regexCache[point])
if (!match)
Expand Down

0 comments on commit e27aa5e

Please sign in to comment.