mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 18:17:53 +08:00
Avoid $ trigger TH
This commit is contained in:
@@ -88,7 +88,7 @@ outputError file error = putStrLn $ concat [
|
||||
attr s v = concat [ s, "='", escape v, "' " ]
|
||||
escape = concatMap escape'
|
||||
escape' c = if isOk c then [c] else "&#" ++ show (ord c) ++ ";"
|
||||
isOk x = any ($x) [isAsciiUpper, isAsciiLower, isDigit, (`elem` " ./")]
|
||||
isOk x = any ($ x) [isAsciiUpper, isAsciiLower, isDigit, (`elem` " ./")]
|
||||
|
||||
severity "error" = "error"
|
||||
severity "warning" = "warning"
|
||||
|
Reference in New Issue
Block a user