support RC1 and RC2 too

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
Christian Dietrich 2022-02-21 13:02:37 +01:00
parent 278e6eb341
commit 2e584ff08f

View file

@ -18,7 +18,7 @@ import org.junit.Test;
* @author dhuebner - Initial contribution and API
*/
public class XtextVersionTests {
private static Pattern VERSION_MATCHER = Pattern.compile("\\d\\.\\d+\\.\\d+(?:(-SNAPSHOT)|(\\.M\\d)|(\\.Beta\\d?))?");
private static Pattern VERSION_MATCHER = Pattern.compile("\\d\\.\\d+\\.\\d+(?:(-SNAPSHOT)|(\\.M\\d)|(\\.Beta\\d?)|(\\.RC\\d?))?");
@Test
public void testVersionKinds() {