Fix issue processing script

The script now properly processes repeating commas inside double quotes.
This commit is contained in:
Markus Mäkelä
2017-10-05 14:11:36 +03:00
committed by Johan Wikman
parent 9a743ec9f3
commit 07f166ed8c

View File

@ -6,10 +6,12 @@
while (<>)
{
# Replace commas that are inside double quotes
s/("[^"]*),([^"]*")/$1$2/g;
while (s/("[^"]*),([^"]*")/$1$2/g)
{
;
}
# Replace the double quotes themselves
s/"([^"]*)"/$1/g;
s/"//g;
# Split the line and grab the issue number and description
my @parts = split(/,/);