Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
netevert committed Mar 31, 2018
1 parent 201120e commit 44dd14f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.2] - 2018-03-31
### Fixed
- Bug introduced in v.1.1 that made tld's disappear in terminal output

## [1.1.1] - 2018-03-31
### Added
- Arm and arm64 architectures
Expand Down
4 changes: 2 additions & 2 deletions dnsmorph.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ func processInput(input string) (sanitizedDomain, tld string) {
} else {
if *includeSubdomains == false {
tldPlusOne, _ := publicsuffix.EffectiveTLDPlusOne(input)
tld, _ := publicsuffix.PublicSuffix(tldPlusOne)
tld, _ = publicsuffix.PublicSuffix(tldPlusOne)
sanitizedDomain = strings.Replace(tldPlusOne, "."+tld, "", -1)
} else if *includeSubdomains == true {
tld, _ := publicsuffix.PublicSuffix(input)
tld, _ = publicsuffix.PublicSuffix(input)
sanitizedDomain = strings.Replace(input, "."+tld, "", -1)
}
}
Expand Down

0 comments on commit 44dd14f

Please sign in to comment.