This repository has been archived by the owner on May 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dashboards: Make the regex much more specific
To make sure that we're not being too greedy with the regex replacement of the data source to use for each dashboard that's uploaded, we make it much more specific using the following: - literal boundaries for " on either side of the match - non-capturing optional group matches for the ${} bits - the case-sensitive literal match for DS_ which is always in every exported dashboard representing the data source used - a one-or-more case-sensitive match for the part that follows the underscore, with no characters allowed except alphabetical This should prevent mistaking any capitalised labels or anything else which may be present in the dashboard.
- Loading branch information