fix: faster check for shebang, thanks to @adrienverge

pull/429/head
Jérôme Alet 4 years ago
parent 6438ff2da9
commit 16326c6b28
No known key found for this signature in database
GPG Key ID: 68097456F2A988D8

@ -103,7 +103,7 @@ def check(conf, comment):
if (conf['ignore-shebangs'] and
comment.line_no == 1 and
comment.column_no == 1 and
comment.buffer[text_start:].startswith('!')):
comment.buffer[text_start] == '!'):
return
# We can test for both \r and \r\n just by checking first char
# \r itself is a valid newline on some older OS.

Loading…
Cancel
Save