better regex for spaces at EOL

unstable
James Lee 2011-11-20 11:34:31 +11:00
parent 60c3c44800
commit 9cbd759eab
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ def check_single_file(dparts, fparts, f_rel)
ll << [ idx, ln ]
end
spaces += 1 if ln =~ / $/
spaces += 1 if ln =~ /[ \t]$/
if (ln.length > 1) and (ln =~ /^([\t ]*)/) and ($1.include?(' '))
bi << [ idx, ln ]
end