source: node_modules/@braintree/sanitize-url/dist/constants.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 665 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.BLANK_URL = exports.relativeFirstCharacters = exports.urlSchemeRegex = exports.ctrlCharactersRegex = exports.htmlCtrlEntityRegex = exports.htmlEntitiesRegex = exports.invalidProtocolRegex = void 0;
4exports.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
5exports.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
6exports.htmlCtrlEntityRegex = /&(newline|tab);/gi;
7exports.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
8exports.urlSchemeRegex = /^.+(:|&colon;)/gim;
9exports.relativeFirstCharacters = [".", "/"];
10exports.BLANK_URL = "about:blank";
Note: See TracBrowser for help on using the repository browser.