(field string)
| 59 | const maxFieldKeyLength = 64 |
| 60 | |
| 61 | func looksLikeFieldKey(field string) bool { |
| 62 | n := utf16Len(field) |
| 63 | return n > 0 && n <= maxFieldKeyLength && !strings.ContainsFunc(field, jsIsSpace) |
| 64 | } |
| 65 | |
| 66 | // utf16Len is the length JavaScript reports for s. |
| 67 | func utf16Len(s string) int { |
no test coverage detected