From 9f265bc5da5d39a83533fd08b115e27998895c4b Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Fri, 6 Mar 2020 08:45:02 +0100 Subject: [PATCH] extend SHA length to 128 digits --- README.md | 2 +- scripts/config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]+)"