84c9110a24
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.24.1 to 2.26.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.24.1...v2.26.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
15 lines
385 B
Go
15 lines
385 B
Go
package ctystrings
|
|
|
|
import (
|
|
"golang.org/x/text/unicode/norm"
|
|
)
|
|
|
|
// Normalize applies NFC normalization to the given string, returning the
|
|
// transformed string.
|
|
//
|
|
// This function achieves the same effect as wrapping a string in a value
|
|
// using [cty.StringVal] and then unwrapping it again using [Value.AsString].
|
|
func Normalize(str string) string {
|
|
return norm.NFC.String(str)
|
|
}
|