update the match method to give precedence to regular fragments

@hojberg