mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-10-04 23:48:13 +02:00
Merge pull request #3160 from dcooper16/improve_emphasize_stuff_in_headers
Improve emphasize_stuff_in_headers()
This commit is contained in:
+4
-3
@@ -3381,9 +3381,10 @@ emphasize_stuff_in_headers() (
|
|||||||
match="$BASH_REMATCH"
|
match="$BASH_REMATCH"
|
||||||
pr_yellow "$match"
|
pr_yellow "$match"
|
||||||
stuff="${stuff/#$match}"
|
stuff="${stuff/#$match}"
|
||||||
elif [[ "${stuff:0:1}" =~ [0-9] ]]; then
|
elif [[ "$stuff" =~ ^[0-9][0-9][0-9][0-9][0-9][0-9][0-9]|^[0-9][0-9][0-9][0-9][0-9][0-9]|^[0-9][0-9][0-9][0-9][0-9]|^[0-9][0-9][0-9][0-9]|^[0-9][0-9][0-9]|^[0-9][0-9]|^[0-9] ]]; then
|
||||||
pr_brown "${stuff:0:1}"
|
match="$BASH_REMATCH"
|
||||||
stuff="${stuff:1}"
|
pr_brown "$match"
|
||||||
|
stuff="${stuff/#$match}"
|
||||||
else
|
else
|
||||||
out "${stuff:0:1}"
|
out "${stuff:0:1}"
|
||||||
stuff="${stuff:1}"
|
stuff="${stuff:1}"
|
||||||
|
|||||||
Reference in New Issue
Block a user