Skip to content

Commit 72f2f21

Browse files
committed
Series: Further Cleanup
1 parent f2774dc commit 72f2f21

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/Series.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -991,24 +991,17 @@ matcher(std::string const& prefix, int padding, std::string const& postfix, Form
991991
nameReg.append("+");
992992
nameReg.append(")" + postfix);
993993

994+
// escape the dot before the file extension/suffix
995+
nameReg.append( "\\" )
996+
.append( suffix( f ) )
997+
.append( "$" );
994998
switch( f )
995999
{
9961000
case Format::HDF5:
997-
{
998-
nameReg.append("\\.h5$");
999-
return buildMatcher(nameReg);
1000-
}
10011001
case Format::ADIOS1:
10021002
case Format::ADIOS2:
1003-
{
1004-
nameReg.append("\\.bp$");
1005-
return buildMatcher(nameReg);
1006-
}
10071003
case Format::JSON:
1008-
{
1009-
nameReg.append("\\.json$");
10101004
return buildMatcher(nameReg);
1011-
}
10121005
default:
10131006
return [](std::string const&) -> std::tuple< bool, int > { return std::tuple< bool, int >{false, 0}; };
10141007
}

0 commit comments

Comments
 (0)