File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -596,7 +596,7 @@ custom_mask() {
596
596
if [[ ${mask_op,,} == " y" ]]; then
597
597
echo -e " \n${RED} [${WHITE} -${RED} ]${GREEN} Enter your custom URL below ${CYAN} (${ORANGE} Example: https://get-free-followers.com${CYAN} )\n"
598
598
read -e -p " ${WHITE} ==> ${ORANGE} " -i " https://" mask_url # initial text requires Bash 4+
599
- if [[ ${mask_url//:* } =~ (www | https ? ) ]] ; then # Someone fix this. Exclude (;,:!#$%^& etc). I suck at regex
599
+ if [[ ${mask_url//:* } =~ ^([h][t][t][p][s] ? )$ || ${mask_url :: 3} == " www " ]] && [[ ${mask_url # http *// } =~ ^[^,~ ! @%: \=\#\;\^\*\"\'\|\? + \<\>\(\{\)\}\\ /]+$ ]] ; then
600
600
mask=$mask_url
601
601
echo -e " \n${RED} [${WHITE} -${RED} ]${CYAN} Using custom Masked Url :${GREEN} $mask "
602
602
else
You can’t perform that action at this time.
0 commit comments