Solved: OSC Wildcard pattern matching doesn't behave as expected!

#1

The OSCAddressPatternTests only check wildcard ranges from 0 to 9 and not beyond. However, thats not every possible case.

Example code:

    OSCAddressPattern pattern ("/*/*put/slider[0-15]");
    if (pattern.matches (OSCAddress ("/mypatch/input/slider10")))
        DBG ("matches"); // it should!!
    else
        DBG ("not");

It should match, but it doesn’t. This example is basically the unittest code, but with [0-15] instead of [0-9]. Testing it with everything above 9 won’t match, but it should!

0 Likes

#2

My bad, should have read the OSC Standard first, it is a char range not an int range.

0 Likes