Version.cpp: Add version string parser to split on '.' character

Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
This commit is contained in:
Edgars Cīrulis 2023-01-15 13:18:13 +02:00
parent c0c3892064
commit 6fb837c529
No known key found for this signature in database
GPG Key ID: 307C4E4663F1FCC3

View File

@ -96,7 +96,7 @@ void Version::parse()
currentSection += m_string[i];
lastCharWasDigit = false;
}
else if(m_string[i] == '-' || m_string[i] == '_'){
else if(m_string[i] == '.' || m_string[i] == '-' || m_string[i] == '_'){
if(!currentSection.isEmpty()){
m_sections.append(Section(currentSection));
}