Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
f14a6655
Commit
f14a6655
authored
Dec 23, 2021
by
Volker Krause
Browse files
Find more reservation number variants in SNCF TER PDF tickets
parent
edbf8922
Pipeline
#113498
passed with stage
in 2 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/scripts/sncf.js
View file @
f14a6655
...
...
@@ -250,7 +250,7 @@ function parseSecutixPdf(pdf, node, triggerNode)
var
pnr
=
text
.
match
(
res
.
reservationNumber
+
'
[^
\n
]* ([A-Z0-9]{6})
\n
'
);
var
layoutVersion
=
1
;
if
(
!
pnr
)
{
pnr
=
text
.
match
(
/
PAO
\s
*:
\s
*
([
A-Z0-9
]{6})\n
/
);
pnr
=
text
.
match
(
/
(?:
PAO|REF
)
\s
*:
\s
*
([
A-Z0-9
]{6
,8
})\n
/
);
layoutVersion
=
2
;
}
res
.
reservationNumber
=
pnr
[
1
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment