mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
rubocop
This commit is contained in:
parent
dc4c7215ca
commit
dc00fc0ae5
@ -9,7 +9,7 @@ describe 'word wrapping' do
|
|||||||
file_content = File.read(file, encoding: 'utf-8')
|
file_content = File.read(file, encoding: 'utf-8')
|
||||||
license_text = file_content.match(/\A(?:---\n.*\n---\n+)?(.*)/m)[1]
|
license_text = file_content.match(/\A(?:---\n.*\n---\n+)?(.*)/m)[1]
|
||||||
max_line_length = 0
|
max_line_length = 0
|
||||||
max_line = ""
|
max_line = ''
|
||||||
license_text.lines.each do |line|
|
license_text.lines.each do |line|
|
||||||
line.chomp!
|
line.chomp!
|
||||||
if line.length > max_line_length
|
if line.length > max_line_length
|
||||||
|
Loading…
x
Reference in New Issue
Block a user