Skip to content

Commit 3b7e22c

Browse files
committed
Add normalization support for wasmJs
1 parent e7961d6 commit 3b7e22c

File tree

1 file changed

+1
-4
lines changed
  • json-schema-validator/src/wasmJsMain/kotlin/io/github/optimumcode/json/schema/internal/hostname

1 file changed

+1
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
package io.github.optimumcode.json.schema.internal.hostname
22

3-
internal actual fun isNormalized(label: String): Boolean {
4-
// depending library does not yet support wasm: https://github.com/OptimumCode/json-schema-validator/issues/177#issuecomment-2268482409
5-
return true
6-
}
3+
internal actual fun isNormalized(label: String): Boolean = js("label.normalize('NFC') === label")

0 commit comments

Comments
 (0)