We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24c338b commit 34a6d18Copy full SHA for 34a6d18
ci/.github/lint-filename.sh
@@ -9,13 +9,13 @@
9
set -e
10
11
SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
12
-GO_REGEX="^[a-zA-Z_]+\.go$"
+GO_REGEX="^[a-zA-Z0-9_]+\.go$"
13
14
find "$SCRIPT_PATH/.." -name "*.go" | while read fullpath; do
15
filename=$(basename -- "$fullpath")
16
17
if ! [[ $filename =~ $GO_REGEX ]]; then
18
- echo "$filename is not a valid filename for Go code, only alpha and underscores are supported"
+ echo "$filename is not a valid filename for Go code, only alpha, numbers and underscores are supported"
19
exit 1
20
fi
21
done
0 commit comments