source: node_modules/@braintree/sanitize-url/src/constants.ts

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: 419 bytes
Line 
1export const invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
2export const htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
3export const htmlCtrlEntityRegex = /&(newline|tab);/gi;
4export const ctrlCharactersRegex =
5 /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
6export const urlSchemeRegex = /^.+(:|&colon;)/gim;
7export const relativeFirstCharacters = [".", "/"];
8export const BLANK_URL = "about:blank";
Note: See TracBrowser for help on using the repository browser.