From 65e87f3899aab3417cac57bab0a8fa371cafd4ec Mon Sep 17 00:00:00 2001 From: ArtemBaskal Date: Tue, 26 May 2020 12:46:30 +0300 Subject: [PATCH] Add breaks between helpers --- client/src/helpers/helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/helpers/helpers.js b/client/src/helpers/helpers.js index 3e096017af7..eec0716f206 100644 --- a/client/src/helpers/helpers.js +++ b/client/src/helpers/helpers.js @@ -493,12 +493,14 @@ export const formatNumber = (num) => { export const normalizeMultiline = (multiline) => `${normalizeTextarea(multiline) .map((line) => line.trim()) .join('\n')}\n`; + /** * @param ip {string} * @returns {number} */ export const ipToInt = (ip) => ip.split('.') .reduce((int, oct) => (int << 8) + parseInt(oct, 10), 0) >>> 0; + /** * @param cidr {string} * @param ip {string} @@ -509,6 +511,7 @@ export const isIpInCidr = (cidr, ip) => { const mask = ~((2 ** (32 - bits)) - 1); return (ipToInt(ip) & mask) === (ipToInt(range) & mask); }; + /** * @param rawClients {string} * @param currentClient {string}