package com.kurento.ktool.rom.processor.model;

public class VersionManager {

	private static final String DEV_SUFFIX = "-dev";
	private static final int DEV_SUFFIX_LENGTH = DEV_SUFFIX.length();

	public static String convertToMaven(String version) {
		return version;
	}

	public static String convertToNPM(String version) {
		if (!isReleaseVersion(version)) {
			version = version
					.substring(0, version.length() - DEV_SUFFIX_LENGTH);
		}
		return version;
	}

	public static boolean isReleaseVersion(String version) {
		return !version.endsWith(DEV_SUFFIX);
	}

}

@@ -237,32 +237,170 @@
 ring version) %7B%0A
+%09%09if (!isReleaseVersion(version)) %7B%0A%09%09%09version = version%0A%09%09%09%09%09.substring(0, version.length() - DEV_SUFFIX_LENGTH)%0A%09%09%09%09%09+ %22-SNAPSHOT%22;%0A%09%09%7D%0A
 %09%09return version

Fix maven version converter