This commit is contained in:
stilez authored and GitHub committed 2019-11-05 21:04:10 +00:00
1 parent 38854bd876
commit 43011f3bfa
1 file changed
+2 -2
+2 -2
View File
@@ -203,10 +203,10 @@ _valuecut() {
printf '%s' "$3" | cut -d . -f "${1}-${2}" printf '%s' "$3" | cut -d . -f "${1}-${2}"
} }
# Counts '.' present in a domain name # Counts '.' present in a domain name or other string
# $1 = domain name # $1 = domain name
_countdots() { _countdots() {
_value "$1" | tr -dc '.' | wc -c _value "$1" | tr -dc '.' | wc -c | sed 's/ //g'
} }
# Cleans up an API response, splits it "one line per item in the response" and greps for a string that in the context, identifies "useful" lines # Cleans up an API response, splits it "one line per item in the response" and greps for a string that in the context, identifies "useful" lines
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.