kmod-cli 1.7.6 → 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -231,16 +231,15 @@ const validateFields = (fields: readonly (keyof T)[]): boolean => {
|
|
|
231
231
|
};
|
|
232
232
|
|
|
233
233
|
|
|
234
|
-
|
|
235
234
|
// import { useFormValidator, REGEXS } from '@/utils/validate/simple-validate';
|
|
236
235
|
|
|
237
236
|
// const validationRules = {
|
|
238
|
-
//
|
|
239
|
-
// password: { required: true,
|
|
237
|
+
// username: { required: true, pattern: REGEXS.username, errorMessage: "Username must be 3-20 alphanumeric characters." },
|
|
238
|
+
// password: { required: true, pattern: REGEXS.password, errorMessage: "Password must contain letters, numbers, and be at least 8 characters." },
|
|
240
239
|
// };
|
|
241
240
|
|
|
242
241
|
// const { values, errors, handleChange, validateAllFields } = useFormValidator(
|
|
243
|
-
// {
|
|
242
|
+
// { username: '', password: '' },
|
|
244
243
|
// validationRules
|
|
245
244
|
// );
|
|
246
245
|
|