Skip to content

Commit

Permalink
Fix #51
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Keyes committed Aug 30, 2016
1 parent a54f89d commit 6a56483
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
Version 1.5.1 [WIP]
-------------------------------------------------------------------------

BUGS
* Fixed a bug in which punycode TLDs were excluded from TLD extraction (thanks to
Alex Pinto for pointing that out) #51

DEVELOPMENT
* Removed the non-portable -g compiler flag in response to CRAN feedback.

Version 1.5.0
-------------------------------------------------------------------------
FEATURES
Expand Down
4 changes: 2 additions & 2 deletions R/suffix.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ suffix_refresh <- function(){
rez <- data.frame(suffixes = suff[!iscomment],
comments = suff[which(iscomment)[1]], stringsAsFactors = FALSE)
}
rez
return(rez)
}))
## this is the old way
#suffix_dataset <- results[!grepl(x = results, pattern = "//", fixed = TRUE) & !results == ""]
Expand Down Expand Up @@ -192,7 +192,7 @@ suffix_extract <- function(domains, suffixes = NULL){
#'@export
tld_refresh <- function(){
raw_tlds <- readLines("http://data.iana.org/TLD/tlds-alpha-by-domain.txt", warn = FALSE)
raw_tlds <- tolower(raw_tlds[!grepl(x = raw_tlds, pattern = "(#|--)")])
raw_tlds <- tolower(raw_tlds[!grepl(x = raw_tlds, pattern = "#", fixed = TRUE)])
return(raw_tlds)
}

Expand Down
Binary file modified data/tld_dataset.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PKG_CPPFLAGS = -UNDEBUG -g
PKG_CPPFLAGS = -UNDEBUG

0 comments on commit 6a56483

Please sign in to comment.