SelfServiceValidators.js revision e26e5073e1266868172d72453c97f413fe2fb603
2N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2N/A * Copyright (c) 2011-2012 ForgeRock AS. All rights reserved. 2N/A * The contents of this file are subject to the terms 2N/A * of the Common Development and Distribution License 2N/A * (the License). You may not use this file except in 2N/A * compliance with the License. 2N/A * You can obtain a copy of the License at 2N/A * See the License for the specific language governing 2N/A * permission and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL 2N/A * Header Notice in each file and include the License file 2N/A * If applicable, add the following below the CDDL Header, 2N/A * with the fields enclosed by brackets [] replaced by 2N/A * your own identifying information: 2N/A * "Portions Copyrighted [year] [name of copyright owner]" 2N/A "name":
"Not empty number",
2N/A if(v !==
"" && !v.
match(/^([
0-
9]+)$/)) {
2N/A "required_formattedDate": {
2N/A "name":
"Not empty, formatted date",
2N/A "name":
"Not empty, formatted date",
2N/A },
"required_max255": {
2N/A "name":
"Not empty and no more than 256 chars",
2N/A callback($.t(
"common.form.validation.shouldBeNotMoreThen256"));