Improve version detection regex. Fix #1092

This commit is contained in:
ethicalhack3r
2017-05-02 12:30:16 +02:00
parent 6ccfe70775
commit 5f77832386
3 changed files with 421 additions and 1 deletions

View File

@@ -138,6 +138,13 @@ shared_examples 'WpItem::Versionable' do
@expected = nil
end
end
context 'when parsing the changelog for version numbers with dates' do
it 'returns it' do
@file = '/wp-maintenance-mode.txt'
@expected = '2.0.9'
end
end
end
end
end