Fix issue processing script
The script now properly processes repeating commas inside double quotes.
This commit is contained in:

committed by
Johan Wikman

parent
9a743ec9f3
commit
07f166ed8c
@ -6,10 +6,12 @@
|
|||||||
while (<>)
|
while (<>)
|
||||||
{
|
{
|
||||||
# Replace commas that are inside double quotes
|
# Replace commas that are inside double quotes
|
||||||
s/("[^"]*),([^"]*")/$1$2/g;
|
while (s/("[^"]*),([^"]*")/$1$2/g)
|
||||||
|
{
|
||||||
|
;
|
||||||
|
}
|
||||||
# Replace the double quotes themselves
|
# Replace the double quotes themselves
|
||||||
s/"([^"]*)"/$1/g;
|
s/"//g;
|
||||||
|
|
||||||
# Split the line and grab the issue number and description
|
# Split the line and grab the issue number and description
|
||||||
my @parts = split(/,/);
|
my @parts = split(/,/);
|
||||||
|
Reference in New Issue
Block a user