Skip to content

Commit

Permalink
refactoring codes and modify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
otakumesi committed Dec 19, 2023
1 parent 862eb58 commit ebaa449
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class NoContentDOM extends ParagraphFilter {
.map(toCamelCase)

def toCamelCase(s: String): String = {
val words = s.split("-")
val words = s.split("[_-]")
words.head + words.tail.map(_.capitalize).mkString
}

Expand Down Expand Up @@ -80,7 +80,7 @@ class NoContentDOM extends ParagraphFilter {
return true
}

// checking filtering keywords in snake case and camel case, kebab case
// check filtering keywords in snake case, camel case and kebab case
if (
partialMatchCandidates.exists(name =>
tagNames.contains(css.tag) && (partialMatchIds(css) || partialMatchClasses(css))
Expand Down

0 comments on commit ebaa449

Please sign in to comment.