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
b7ce72ff
Commit
b7ce72ff
authored
Mar 24, 2021
by
Volker Krause
Browse files
Use the current node as trigger node by default
This is closer to the previous behavior.
parent
79702551
Pipeline
#55450
passed with stages
in 12 minutes and 51 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/scriptenginedata/Testw_VOW8XG6_A9E8DXL_0.bin.json
View file @
b7ce72ff
...
...
@@ -64,7 +64,34 @@
]
},
{
"data"
:
[],
"barcode"
:
"#UT010080000020,
\u
0002
\u
0014
\u
001a绥
\u
0005��
\u
001e
\r\b
h�p���;�
\u
001bb
\u
0002
\u
0014i�ӈ|
\u
0003W������������
\u
001f"
,
"data"
:
[
{
"@type"
:
"TrainReservation"
,
"reservationFor"
:
{
"@type"
:
"TrainTrip"
,
"provider"
:
{
"@type"
:
"Organization"
,
"identifier"
:
"uic:0080"
}
},
"reservationNumber"
:
"9E8DXL"
,
"reservedTicket"
:
{
"@type"
:
"Ticket"
,
"ticketToken"
:
"aztecbin:I1VUMDEwMDgwMDAwMDIwLAIUGue7pQWksx4NCGj9cJzioDvHG2ICFGnc04h8A1eHmpP6hrOkqvuyoaofAAAAADAzNzR4nH2Rv07CUBTGkUFdXHyCJi5QqZ57+p8NbCsNFJMWCMhAiGhsQDSlkuiTsLk4ysqig0lfwEE3H8Zz5Y+YGDvcfvc7v/vd09N6p2QXLGAAqgxggGkbVrMi6am1h+mACAyZygywbMvmoGsBApBhMpQV7hQr5CjMBIVoX3Fa1qnaWg/CRQ4a87eBqmpq5KNvOdis1sveX7QG8oqmOKYFwPtlrHodXXUHN9F5OCKLuiGKhMxFgYSyFCYJDSUmMTMghttAgtcxoCNMJaWWk9lgSBuNZzlRd9i/uI3ijNcNh9n9ozC+o5r+T81YC0HG+2i4hbxQ809cMXCPi6JXEyuemHFKh47jOVmiqFVUL5PHZJa8RIJP4kHoJ9Ozfkfq5A8I0HiL/Kvw+2bqG5mp82krNBONj55qdLOMP+dyozh5Fvy938H8UKPOJ2fMf0o6Tcv7JN56m4xz7dRGrv26GP3T9ufmzmR8vxvS5mNB9IjoLYnpivgC6qKSSw=="
,
"ticketedSeat"
:
{
"@type"
:
"Seat"
,
"seatingType"
:
"2"
}
},
"underName"
:
{
"@context"
:
"http://schema.org"
,
"@type"
:
"Person"
,
"familyName"
:
"häöür Räß"
,
"givenName"
:
"kíck_-_:.,stû R"
}
}
],
"objectName"
:
""
,
"pdfPageNumber"
:
0
,
"senderDate"
:
"Fri Feb 17 15:18:00 2012 GMT+0100"
...
...
autotests/scriptenginedata/google-flight-reservation-json-ld.html.json
View file @
b7ce72ff
...
...
@@ -60,7 +60,39 @@
]
},
{
"data"
:
[],
"data"
:
[
{
"@context"
:
"http://schema.org"
,
"@type"
:
"FlightReservation"
,
"reservationFor"
:
{
"@type"
:
"Flight"
,
"airline"
:
{
"@type"
:
"Airline"
,
"iataCode"
:
"UA"
,
"name"
:
"United"
},
"arrivalAirport"
:
{
"@type"
:
"Airport"
,
"iataCode"
:
"JFK"
,
"name"
:
"John F. Kennedy International Airport"
},
"arrivalTime"
:
"2027-03-05T06:30:00-05:00"
,
"departureAirport"
:
{
"@type"
:
"Airport"
,
"iataCode"
:
"SFO"
,
"name"
:
"San Francisco Airport"
},
"departureTime"
:
"2027-03-04T20:15:00-08:00"
,
"flightNumber"
:
"110"
},
"reservationNumber"
:
"RXJ34P"
,
"reservationStatus"
:
"http://schema.org/Confirmed"
,
"underName"
:
{
"@type"
:
"Person"
,
"name"
:
"Eva Green"
}
}
],
"objectName"
:
""
,
"pdfPageNumber"
:
0
,
"senderDate"
:
"Invalid Date"
...
...
autotests/scriptenginedata/plain-text.txt.json
View file @
b7ce72ff
...
...
@@ -13,6 +13,7 @@
]
},
{
"barcode"
:
"Hello World!
\n
"
,
"data"
:
[
],
"objectName"
:
""
,
...
...
src/lib/engine/scriptextractor.cpp
View file @
b7ce72ff
...
...
@@ -173,7 +173,7 @@ ExtractorResult ScriptExtractor::extract(const ExtractorDocumentNode &node, cons
}
if
(
triggerNodes
.
empty
())
{
return
engine
->
scriptEngine
()
->
execute
(
this
,
node
,
{}
);
return
engine
->
scriptEngine
()
->
execute
(
this
,
node
,
node
);
}
else
{
ExtractorResult
result
;
for
(
const
auto
&
triggerNode
:
triggerNodes
)
{
...
...
Write
Preview
Markdown
is supported
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