Added some unicode chars to URL regex (Closes #462)

This commit is contained in:
Gregory Schier 2017-09-09 13:36:07 +00:00
parent 4f49c57c0c
commit 77b31c078f

View File

@ -55,7 +55,7 @@ export const CHANGELOG_URL = 'https://changelog.insomnia.rest/changelog.json';
export const CHANGELOG_PAGE = 'https://insomnia.rest/changelog/'; export const CHANGELOG_PAGE = 'https://insomnia.rest/changelog/';
export const STATUS_CODE_PLUGIN_ERROR = -222; export const STATUS_CODE_PLUGIN_ERROR = -222;
export const LARGE_RESPONSE_MB = 5; export const LARGE_RESPONSE_MB = 5;
export const FLEXIBLE_URL_REGEX = /^(http|https):\/\/[0-9a-zA-Z\-_.]+[/\w.\-+=:\][@%^*&!#?;]*/; export const FLEXIBLE_URL_REGEX = /^(http|https):\/\/[\wàâäèéêëîïôóœùûüÿçÀÂÄÈÉÊËÎÏÔŒÙÛÜŸÇ\-_.]+[/\wàâäèéêëîïôóœùûüÿçÀÂÄÈÉÊËÎÏÔŒÙÛÜŸÇ.\-+=:\][@%^*&!#?;]*/;
export const CHECK_FOR_UPDATES_INTERVAL = 1000 * 60 * 60 * 3; // 3 hours export const CHECK_FOR_UPDATES_INTERVAL = 1000 * 60 * 60 * 3; // 3 hours
export const PLUGIN_PATH = path.join((electron.remote || electron).app.getPath('userData'), 'plugins'); export const PLUGIN_PATH = path.join((electron.remote || electron).app.getPath('userData'), 'plugins');