This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-card id="login-form-card"> | |
<v-form ref="form" v-model="valid" @keyup.native.enter="submit"> | |
<v-container> | |
<v-row no-gutters> | |
<v-col> | |
<v-alert color="error" :value="responseStatus !== ''">{{ | |
responseStatus | |
}}</v-alert> | |
</v-col> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Validates if a string conforms to a valid Romanian Fiscal Code. | |
* | |
* See Romanian Law no. 359 from 8 September 2004. | |
* @param v {string} input string to be validated | |
* @returns {string|boolean} `true` if the input is a valid CIF or an error message, | |
* describing where validation failed | |
*/ | |
function validateRomanianCIF (v) { | |
if (typeof v !== 'string') { |
NewerOlder