1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00
This commit is contained in:
Mike Linksvayer 2017-11-19 12:33:01 -08:00
parent dc4c7215ca
commit dc00fc0ae5

View File

@ -9,7 +9,7 @@ describe 'word wrapping' do
file_content = File.read(file, encoding: 'utf-8')
license_text = file_content.match(/\A(?:---\n.*\n---\n+)?(.*)/m)[1]
max_line_length = 0
max_line = ""
max_line = ''
license_text.lines.each do |line|
line.chomp!
if line.length > max_line_length