Made string removal in root domain detection posix compliant

This commit is contained in:
peterv99 committed 2024-12-24 17:10:30 +01:00
1 parent 5e9a067e87
commit ab1a2045d9
1 file changed
+1 -1
+1 -1
View File
@@ -147,7 +147,7 @@ _get_root() {
for rootDomain in $rootDomains; do
if _contains "$domain" "$rootDomain"; then
_domain="$rootDomain"
_sub_domain=$(printf '%s\n' "${domain//."$rootDomain"/}")
_sub_domain=$(echo "$domain" | sed "s/$rootDomain//g")
return 0
fi
done
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.