mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/9824] Allow empty lines after ticket reference.
PHPBB3-9824
This commit is contained in:
parent
b90e01392c
commit
d7a38fd7ef
1 changed files with 8 additions and 1 deletions
|
@ -139,6 +139,10 @@ do
|
||||||
# Should not end up here
|
# Should not end up here
|
||||||
false
|
false
|
||||||
;;
|
;;
|
||||||
|
"possibly-eof")
|
||||||
|
# Allow empty and/or comment lines at the end
|
||||||
|
! tail -n +"$i" "$1" |grep -qvE '^($|#)'
|
||||||
|
;;
|
||||||
"comment")
|
"comment")
|
||||||
echo "$line" | grep -Eq "^#";
|
echo "$line" | grep -Eq "^#";
|
||||||
;;
|
;;
|
||||||
|
@ -199,7 +203,7 @@ do
|
||||||
in_description=1;
|
in_description=1;
|
||||||
;;
|
;;
|
||||||
"footer")
|
"footer")
|
||||||
expecting="footer eof";
|
expecting="footer possibly-eof";
|
||||||
if [ "$tickets" = "" ]
|
if [ "$tickets" = "" ]
|
||||||
then
|
then
|
||||||
tickets="$line";
|
tickets="$line";
|
||||||
|
@ -210,6 +214,9 @@ do
|
||||||
"comment")
|
"comment")
|
||||||
# Comments should expect the same thing again
|
# Comments should expect the same thing again
|
||||||
;;
|
;;
|
||||||
|
"possibly-eof")
|
||||||
|
expecting="eof";
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unrecognised token $expect" >&2;
|
echo "Unrecognised token $expect" >&2;
|
||||||
quit 254;
|
quit 254;
|
||||||
|
|
Loading…
Add table
Reference in a new issue