From aa3e5c1dc6a42ce26c855f71a9ae7bd3147b4636 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 6 Jan 2020 21:42:41 +0100 Subject: [PATCH] refactor: order of constants --- src/utils/encoding.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/encoding.ts b/src/utils/encoding.ts index 33fae6ca..4f18ab73 100644 --- a/src/utils/encoding.ts +++ b/src/utils/encoding.ts @@ -17,17 +17,17 @@ const HASH_RE = /#/g // %23 const AMPERSAND_RE = /&/g // %26 +const SLASH_RE = /\//g // %2F const EQUAL_RE = /=/g // %3D const IM_RE = /\?/g // %3F -const SLASH_RE = /\//g // %2F const ENC_BRACKET_OPEN_RE = /%5B/g // [ const ENC_BRACKET_CLOSE_RE = /%5D/g // ] const ENC_CARET_RE = /%5E/g // ^ +const ENC_BACKTICK_RE = /%60/g // ` const ENC_CURLY_OPEN_RE = /%7B/g // { const ENC_PIPE_RE = /%7C/g // | const ENC_CURLY_CLOSE_RE = /%7D/g // } -const ENC_BACKTICK_RE = /%60/g // ` function commonEncode(text: string): string { return encodeURI(text) -- 2.47.2