{"ScriptPreparationCode":null,"TestCases":[{"Name":"Regular Expression","Code":"const https = \u0027https://www.example.com\u0027;\r\nconst slash = \u0027//www.example.com\u0027;\r\nconst www = \u0027www.example.com\u0027;\r\n\r\n/^(?:https?:)?\\/\\/(?:www\\.)?/.test(https);\r\n/^(?:https?:)?\\/\\/(?:www\\.)?/.test(slash);\r\n/^(?:https?:)?\\/\\/(?:www\\.)?/.test(www);","IsDeferred":false},{"Name":"StartsWith","Code":"const https = \u0027https://www.example.com\u0027;\r\nconst slash = \u0027//www.example.com\u0027;\r\nconst www = \u0027www.example.com\u0027;\r\n\r\nif(https.startsWith(\u0027http\u0027) || https.startsWith(\u0027//\u0027) || https.startsWith(\u0027www.\u0027)) return null;\r\nif(slash.startsWith(\u0027http\u0027) || slash.startsWith(\u0027//\u0027) || slash.startsWith(\u0027www.\u0027)) return null;\r\nif(www.startsWith(\u0027http\u0027) || www.startsWith(\u0027//\u0027) || www.startsWith(\u0027www.\u0027))return null;","IsDeferred":false}]}