]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: order of constants
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 6 Jan 2020 20:42:41 +0000 (21:42 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 15 Jan 2020 16:36:50 +0000 (17:36 +0100)
src/utils/encoding.ts

index 33fae6ca776e5538fe4475381e27cc65f0c6fd83..4f18ab73bc88867b2f41965a477cfae5c9ad533b 100644 (file)
 
 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)