Skip to content

Commit dee8178

Browse files
authored
Merge pull request #26 from IhateTrains/version-names
Allow mapping version to be any string matching stringRegex
2 parents 01f8913 + 233cafb commit dee8178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProvinceMapper/Source/LinkMapper/LinkMapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void LinkMapper::loadMappings(const std::string& linksFileString,
3333

3434
void LinkMapper::registerKeys()
3535
{
36-
registerRegex(R"(\d+.\d+.\d+.*)", [this](const std::string& versionName, std::istream& theStream) {
36+
registerRegex(commonItems::stringRegex, [this](const std::string& versionName, std::istream& theStream) {
3737
const auto version = std::make_shared<LinkMappingVersion>(theStream, versionName, sourceDefs, targetDefs, sourceToken, targetToken, versionCounter);
3838
++versionCounter;
3939
versions.emplace_back(version);

0 commit comments

Comments
 (0)