import R from 'ramda';

// :: String -> Boolean
export const isValidVersion = R.test(
  /^(?:0|[^0\D]\d{0,9})\.(?:0|[^0\D]\d{0,9})\.(?:0|[^0\D]\d{0,9})$/);

export default isValidVersion;

import R from 'ramda';

// :: String -> Boolean
export const isValidVersion = R.test(
  /^(?:0|[^0\D]\d{0,8})\.(?:0|[^0\D]\d{0,8})\.(?:0|[^0\D]\d{0,8})$/);

export default isValidVersion;

change version validation regexp to match server-side validation rules