=pro all non-words must be replaced with _, for statsd keys

This commit is contained in:
Konrad 'ktoso' Malawski 2014-04-29 10:51:03 +02:00
parent d84d583585
commit 69ffd006cf

View file

@ -112,7 +112,7 @@ object TestExtras {
private def testTimerKey(det: Event): String = s"${det.fullyQualifiedName}.${testSelectorToId(det.selector)}"
private def testSelectorToId(sel: testing.Selector): String = sel.asInstanceOf[TestSelector].testName().replaceAll("[. ']", "_")
private def testSelectorToId(sel: testing.Selector): String = sel.asInstanceOf[TestSelector].testName().replaceAll("""[^\w]""", "_")
private def testCounterKey(det: Event, status: Status): String = s"${det.fullyQualifiedName}.${status.toString.toLowerCase}"