mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 18:25:17 +08:00
Fix parsing of [[ a =~ {$var} ]]
This commit is contained in:
@@ -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 '('
|
||||
|
Reference in New Issue
Block a user