Version.cpp: Add version string parser to split on '.' character
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
This commit is contained in:
parent
c0c3892064
commit
6fb837c529
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user