Skip to content

Commit

Permalink
#1376 Update tag format
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 22, 2020
1 parent bcec72c commit 0a0ad3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/models/Tag.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ case class Tag(
override def canEqual(that: Any): Boolean = that.isInstanceOf[Tag]

override def toString: String =
(if (namespace.headOption.getOrElse('_') == '_') "" else namespace + '.') +
(if (namespace.headOption.getOrElse('_') == '_') "" else namespace + ':') +
(if (predicate.headOption.getOrElse('_') == '_') "" else predicate) +
value.fold("")(v => f"""="$v"""") // #$colour%06X
}
Expand Down

0 comments on commit 0a0ad3a

Please sign in to comment.