Skip to content

Commit b79feaa

Browse files
committed
docs: decorate text
1 parent 7c5a540 commit b79feaa

1 file changed

Lines changed: 28 additions & 26 deletions

File tree

user_guide_src/source/libraries/validation.rst

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -759,15 +759,16 @@ alpha_numeric_space No Fails if field contains anything other than
759759
alphanumeric or space characters.
760760
alpha_numeric_punct No Fails if field contains anything other than
761761
alphanumeric, space, or this limited set of
762-
punctuation characters: ~ (tilde),
763-
! (exclamation), # (number), $ (dollar),
764-
% (percent), & (ampersand), * (asterisk),
765-
- (dash), _ (underscore), + (plus),
766-
= (equals), | (vertical bar), : (colon),
767-
. (period).
762+
punctuation characters: ``~`` (tilde),
763+
``!`` (exclamation), ``#`` (number),
764+
``$`` (dollar), ``% (percent), & (ampersand),
765+
``*`` (asterisk), ``-`` (dash),
766+
``_`` (underscore), ``+`` (plus),
767+
``=`` (equals), ``|`` (vertical bar),
768+
``:`` (colon), ``.`` (period).
768769
decimal No Fails if field contains anything other than
769-
a decimal number.
770-
Also accepts a + or - sign for the number.
770+
a decimal number. Also accepts a ``+`` or
771+
``-`` sign for the number.
771772
differs Yes Fails if field does not differ from the one ``differs[field_name]``
772773
in the parameter.
773774
exact_length Yes Fails if field is not exactly the parameter ``exact_length[5]`` or ``exact_length[5,8,12]``
@@ -833,8 +834,8 @@ valid_email No Fails if field does not contain a valid
833834
valid_emails No Fails if any value provided in a comma
834835
separated list is not a valid email.
835836
valid_ip No Fails if the supplied IP is not valid. ``valid_ip[ipv6]``
836-
Accepts an optional parameter of 'ipv4' or
837-
'ipv6' to specify an IP format.
837+
Accepts an optional parameter of ``ipv4`` or
838+
``ipv6`` to specify an IP format.
838839
valid_url No Fails if field does not contain (loosely) a
839840
URL. Includes simple strings that could be
840841
hostnames, like "codeigniter".
@@ -849,22 +850,23 @@ valid_date No Fails if field does not contain a valid date.
849850
valid_cc_number Yes Verifies that the credit card number matches ``valid_cc_number[amex]``
850851
the format used by the specified provider.
851852
Current supported providers are:
852-
American Express (amex),
853-
China Unionpay (unionpay),
854-
Diners Club CarteBlance (carteblanche),
855-
Diners Club (dinersclub),
856-
Discover Card (discover),
857-
Interpayment (interpayment), JCB (jcb),
858-
Maestro (maestro), Dankort (dankort),
859-
NSPK MIR (mir),
860-
Troy (troy), MasterCard (mastercard),
861-
Visa (visa), UATP (uatp), Verve (verve),
862-
CIBC Convenience Card (cibc),
863-
Royal Bank of Canada Client Card (rbc),
864-
TD Canada Trust Access Card (tdtrust),
865-
Scotiabank Scotia Card (scotia),
866-
BMO ABM Card (bmoabm),
867-
HSBC Canada Card (hsbc)
853+
American Express (``amex``),
854+
China Unionpay (``unionpay``),
855+
Diners Club CarteBlance (``carteblanche``),
856+
Diners Club (``dinersclub``),
857+
Discover Card (``discover``),
858+
Interpayment (``interpayment``),
859+
JCB (``jcb``), Maestro (``maestro``),
860+
Dankort (``dankort``), NSPK MIR (``mir``),
861+
Troy (``troy``), MasterCard (``mastercard``),
862+
Visa (``visa``), UATP (``uatp``),
863+
Verve (``verve``),
864+
CIBC Convenience Card (``cibc``),
865+
Royal Bank of Canada Client Card (``rbc``),
866+
TD Canada Trust Access Card (``tdtrust``),
867+
Scotiabank Scotia Card (``scotia``),
868+
BMO ABM Card (``bmoabm``),
869+
HSBC Canada Card (``hsbc``)
868870
======================= ========== ============================================= ===================================================
869871

870872
.. note:: You can also use any native PHP functions that return boolean and

0 commit comments

Comments
 (0)