Skip to content

Commit

Permalink
fix negative container queries
Browse files Browse the repository at this point in the history
  • Loading branch information
haikyuu committed Apr 24, 2024
1 parent 49feaf3 commit 4e9f438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/imba/src/compiler/selparse.imba
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export def rewrite rule,ctx,o = {}
let name = mod.pseudo
let meta = modifiers[mod.pseudo]

const container_regex = /^c-([a-zA-Z-_]+)\!?(\d+)$/
const container_regex = /^\!?c-([a-zA-Z-_]+)(\d+)$/

if const match = name..match container_regex
let num = parseInt(match[2])
Expand Down

0 comments on commit 4e9f438

Please sign in to comment.