We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents acab1c3 + 1cf87e0 commit 4046d32Copy full SHA for 4046d32
1 file changed
OREData/ored/utilities/indexparser.cpp
@@ -982,7 +982,7 @@ string internalIndexName(const string& indexName) {
982
// Check if we have an overnight index
983
// This covers cases like USD-FedFunds-1D and returns USD-FedFunds
984
// (no need to check convention based overnight indices, they are always of the form CCY-INDEX)
985
- if (parsePeriod(tokens[2]) == 1 * Days && isOvernightIndex(tmpName)) {
+ if (isOnePeriod(tokens[2]) && parsePeriod(tokens[2]) == 1 * Days && isOvernightIndex(tmpName)) {
986
return tmpName;
987
}
988
0 commit comments