diff --git a/README.md b/README.md index 5dddc32..d6612b6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ will be copied to the clipboard. Less keystrokes == profit! Here is a list of the stuff highlighted by default. * File paths -* git SHAs +* SHAs * numbers ( 4+ digits ) * hex numbers * IP addresses diff --git a/scripts/config.sh b/scripts/config.sh index 480fe4e..b90df94 100755 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -85,7 +85,7 @@ PATTERNS_LIST=( "((^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]+)" "([[:digit:]]{4,})" "([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})" -"([0-9a-f]{7,40})" +"([0-9a-f]{7,128})" "((https?://|git@|git://|ssh://|ftp://|file:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*)" "([[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3})" "(0x[0-9a-fA-F]+)"