We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be3f13 commit 0fe5c56Copy full SHA for 0fe5c56
toc/rfc/assign-rfc-number.sh
@@ -27,7 +27,7 @@ NOPUSH=${NOPUSH:-}
27
#
28
29
generate_id() {
30
- id="$(find "$script_dir" -maxdepth 2 -type f -exec basename {} \; | sed 's/[^0-9]*//' | sed -E 's|^([[:digit:]]{4})-.*$|\1|' | sort | tail -n 1 | sed 's/^0*//')"
+ id="$(find "$script_dir" -maxdepth 2 -type f -exec basename {} \; | grep -E '^rfc-[0-9]{4}-' | sed 's/[^0-9]*//' | sed -E 's|^([[:digit:]]{4})-.*$|\1|' | sort | tail -n 1 | sed 's/^0*//')"
31
((id++))
32
printf "%04d" "${id}"
33
}
0 commit comments