From: Eduardo San Martin Morote Date: Mon, 6 Jan 2020 20:42:41 +0000 (+0100) Subject: refactor: order of constants X-Git-Tag: v4.0.0-alpha.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa3e5c1dc6a42ce26c855f71a9ae7bd3147b4636;p=thirdparty%2Fvuejs%2Frouter.git refactor: order of constants --- 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)