isPartOfUTF8Sequence checks if a byte at position i is part of a valid UTF-8 sequence
(content []byte, i int)
| 113 | |
| 114 | // isPartOfUTF8Sequence checks if a byte at position i is part of a valid UTF-8 sequence |
| 115 | func isPartOfUTF8Sequence(content []byte, i int) bool { |
| 116 | // Simple check: if byte has high bit set, it should be part of UTF-8 |
| 117 | if content[i] >= 128 { |
| 118 | // Basic UTF-8 validation - this is a simplified check |
| 119 | return true |
| 120 | } |
| 121 | return false |
| 122 | } |
| 123 | |
| 124 | // FindMainGroovyScript determines which Groovy script should be executed. |
| 125 | // Following Ruby buildpack logic, a file is a candidate if it has a static |