We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e19e9e1 commit c6f551dCopy full SHA for c6f551d
src/Shared/validations.tsx
@@ -254,8 +254,15 @@ export const validateUniqueKeys = (keys: string[]) => {
254
}
255
256
257
-export const validateSematicVersioning = (version: string): ValidationResponseType => {
258
- if (!/^.{0,128}$/.test(version)) {
+export const validateSemanticVersioning = (version: string): ValidationResponseType => {
+ if (!version) {
259
+ return {
260
+ isValid: false,
261
+ message: 'Please provide a version',
262
+ }
263
264
+
265
+ if (version.length > 128) {
266
return {
267
isValid: false,
268
message: MESSAGES.getMaxCharMessage(128),
0 commit comments