mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Fix parsing of [[ a =~ {$var} ]]
This commit is contained in:
parent
86999ded1f
commit
40136fe249
2 changed files with 3 additions and 2 deletions
|
@ -586,8 +586,8 @@ readConditionContents single =
|
|||
where
|
||||
readGlobLiteral = do
|
||||
id <- getNextId
|
||||
s <- many1 (extglobStart <|> oneOf "{}[]$")
|
||||
return $ T_Literal id s
|
||||
s <- extglobStart <|> oneOf "{}[]$"
|
||||
return $ T_Literal id [s]
|
||||
readGroup = called "regex grouping" $ do
|
||||
id <- getNextId
|
||||
char '('
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue