expensify-common 2.0.141 → 2.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Url.js +1 -1
- package/package.json +1 -1
package/dist/Url.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.URL_WEBSITE_REGEX = URL_WEBSITE_REGEX;
|
|
|
14
14
|
const addEscapedChar = (reg) => `(?:${reg}|&(?:amp|#x27);)`;
|
|
15
15
|
const URL_PATH_REGEX = `(?:${addEscapedChar('[.,=(+$!*]')}?\\/${addEscapedChar('[-\\w$@.+!*:(),=%~]')}*${addEscapedChar('[-\\w~@:%)]')}|\\/)*`;
|
|
16
16
|
exports.URL_PATH_REGEX = URL_PATH_REGEX;
|
|
17
|
-
const URL_PARAM_REGEX = `(?:\\?${addEscapedChar('[-\\w$@.+!*()\\/,=%{}:;\\[\\]\\|_|~]')}
|
|
17
|
+
const URL_PARAM_REGEX = `(?:\\?${addEscapedChar('[-\\w$@.+!*()\\/,=%{}:;\\[\\]\\|_|~]')}+)?`;
|
|
18
18
|
exports.URL_PARAM_REGEX = URL_PARAM_REGEX;
|
|
19
19
|
const URL_FRAGMENT_REGEX = `(?:#${addEscapedChar('[-\\w$@.+!*()[\\],=%;\\/:~]')}*)?`;
|
|
20
20
|
exports.URL_FRAGMENT_REGEX = URL_FRAGMENT_REGEX;
|