mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-03-02 02:19:16 -05:00
Fix metrics that have integer value labels
This commit is contained in:
parent
966686c845
commit
95b6912045
@ -324,4 +324,4 @@ def _escape_character(m):
|
|||||||
def _escape_label_value(value):
|
def _escape_label_value(value):
|
||||||
"""Takes a label value and escapes quotes, newlines and backslashes
|
"""Takes a label value and escapes quotes, newlines and backslashes
|
||||||
"""
|
"""
|
||||||
return re.sub(r"([\n\"\\])", _escape_character, value)
|
return re.sub(r"([\n\"\\])", _escape_character, str(value))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user