Skip to content

Commit e44dedf

Browse files
tinmarinoblueyed
authored andcommitted
Policy: double quote, allow if dollar in string (#340)
1 parent bcd6562 commit e44dedf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vint/linting/policy/prohibit_unnecessary_double_quote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# see `:help expr-string`
1212
_special_char_matcher = re.compile(
1313
r'(\'|' # allow single quote
14+
r'\$|' # allow dollar
1415
r'\\(' # prefix back slash
1516
r'(?P<octal>[0-7]{1,3})'
1617
r'|(?P<hexadecimal>[xX][0-9a-fA-F]{1,2})'

0 commit comments

Comments
 (0)