Merge "mediawiki.util: Document isIPAddress() allowBlock as optional"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 19 Mar 2018 06:45:19 +0000 (06:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 19 Mar 2018 06:45:19 +0000 (06:45 +0000)
resources/src/mediawiki/mediawiki.util.js

index fb34a89..d7b3f35 100644 (file)
                 * Note: borrows from IP::isIPv4
                 *
                 * @param {string} address
-                * @param {boolean} allowBlock
+                * @param {boolean} [allowBlock=false]
                 * @return {boolean}
                 */
                isIPv4Address: function ( address, allowBlock ) {
                 * Note: borrows from IP::isIPv6
                 *
                 * @param {string} address
-                * @param {boolean} allowBlock
+                * @param {boolean} [allowBlock=false]
                 * @return {boolean}
                 */
                isIPv6Address: function ( address, allowBlock ) {
                 *
                 * @since 1.25
                 * @param {string} address String to check
-                * @param {boolean} allowBlock True if a block of IPs should be allowed
+                * @param {boolean} [allowBlock=false] If a block of IPs should be allowed
                 * @return {boolean}
                 */
                isIPAddress: function ( address, allowBlock ) {