summaryrefslogtreecommitdiff
path: root/control.read.go
blob: 672b99b0f4c9c63cdc0af30d3261ca9f993c105f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

/*
func trimNonNumericPrefix(s string) string {
	// Find the index of the first character that IS a digit.
	firstDigitIndex := strings.IndexFunc(s, unicode.IsDigit)

	// If no digit is found, IndexFunc returns -1.
	// In this case, the result should be an empty string.
	if firstDigitIndex == -1 {
		return ""
	}

	// Return the substring starting from the first digit.
	return s[firstDigitIndex:]
}
*/