Skip to content

Commit 233cafb

Browse files
committed
Allow mapping version to be any string matching stringRegex
1 parent 01f8913 commit 233cafb

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)