influxdata / influxdata/kapacitor

Add a string functions that are runes in utf-8 strings aware

Open
#2,670 6 comments 1 reaction 1 assignee Claimed by @docmerlin View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

In some of my cases I have to limit length of string value from influxdb to send as a message in alert node. If string have utf-8 charset and contains some cyrillic symbols there are no way to get number of chars in it by strLength or substring it by strSubstring, etc. This happens because every cyrillic symbol counts as two chars in result of len(str).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.