mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
hostname regex seems to be wrong #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jollyjinx on GitHub (Dec 14, 2015).
Currently the regex for hostnames seems to be incorrectly escaped as hostnames like smokeping.example.com are incorrectly parsed.
I've doubled escaped the:
sed 's/^\s_//g;s/\s_$//g'
to:
sed 's/^\s_//g;s/\s_$//g'
and now it works for me.
@lukas2511 commented on GitHub (Dec 15, 2015):
Mh... tiny problem with this: BSD version of sed behaves different than GNU version...
The original line worked fine with GNU sed but had problems with BSD sed,
the "fixed" line is exactly the other way round...
Need to find a solution for this :-/
@lukas2511 commented on GitHub (Dec 16, 2015):
Oops well actually, the "fixed" version actually just doesn't work at all, it doesn't remove the whitespace, it just passes the line as is.