qdapRegex icon indicating copy to clipboard operation
qdapRegex copied to clipboard

Bug in rm_repeated_characters() / ex_repeated_characters()

Open sanjmeh opened this issue 2 years ago • 0 comments

library(qdapRegex)

"hha that was a good joke peep and pepper and pepe" |> rm_repeated_characters()
# "that was a good joke peep and pepper and"

"ahh that was a good joke peep and pepper and pepe"  |>  rm_repeated_characters()
#  "ahh that was a good joke peep and pepper and"

Note hha is removed while ahh is not removed. Is this by design or a bug? There is nothing in the documentation that says only starting characters will be checked.

sanjmeh avatar Aug 19 '22 16:08 sanjmeh