mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-31 03:50:49 -07:00
Avoid $ trigger TH
This commit is contained in:
parent
985ca2530d
commit
8754c21244
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ outputError file error = putStrLn $ concat [
|
||||||
attr s v = concat [ s, "='", escape v, "' " ]
|
attr s v = concat [ s, "='", escape v, "' " ]
|
||||||
escape = concatMap escape'
|
escape = concatMap escape'
|
||||||
escape' c = if isOk c then [c] else "&#" ++ show (ord c) ++ ";"
|
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 "error" = "error"
|
||||||
severity "warning" = "warning"
|
severity "warning" = "warning"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue