When pre-trial detention is ordered following the revocation of a judicial supervision order against a person previously placed in pre-trial detention for the same acts, the cumulative period of detention may not exceed by more than four months the maximum period of detention provided for respectively in articles 145-1 and 145-2. Where the sentence incurred is less than that mentioned in article 143-1, the total period of detention may not exceed four months.