Skip to content

Commit 22e51be

Browse files
authored
Merge pull request #8 from beogivaljr/patch-1
Improved RegEx for version parser
2 parents e43dacd + 7008f28 commit 22e51be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/ProjectVersionFromGit/Private/ProjectVersionFromGitBPLibrary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void UProjectVersionFromGitBPLibrary::GetProjectVersionInfo(FParseVersionDelegat
8080
OutStdOut.TrimStartAndEndInline();
8181
//UE_LOG(LogProjectVersionFromGitBPLibrary, Log, TEXT("-------- Git tag: %s"), *OutStdOut);
8282

83-
const FRegexPattern myPattern(TEXT("([0-9]\\.[0-9]\\.[0-9])+"));
83+
const FRegexPattern myPattern(TEXT("([0-9]+\\.[0-9]+\\.[0-9]+)+"));
8484
FRegexMatcher myMatcher(myPattern, OutStdOut);
8585

8686
if (myMatcher.FindNext())

0 commit comments

Comments
 (0)