Skip to content

Commit 46d23ba

Browse files
authored
fix: edit regex for URL resource-locators (#54)
1 parent bc750b3 commit 46d23ba

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

nodes/Apify/resources/actorResourceLocator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const resourceLocatorProperty: INodeProperties = {
2929
properties: {
3030
// https://console.apify.com/actors/AtBpiepuIUNs2k2ku/input
3131
// https://console.apify.com/actors/AtBpiepuIUNs2k2ku
32-
regex: 'https://console.apify.com/actors/([a-zA-Z0-9]+)(/input)?',
32+
regex: 'https://console.apify.com/actors/([a-zA-Z0-9]+).*',
3333
errorMessage: 'Not a valid Actor URL',
3434
},
3535
},
@@ -38,7 +38,7 @@ const resourceLocatorProperty: INodeProperties = {
3838
type: 'regex',
3939
// https://console.apify.com/actors/AtBpiepuIUNs2k2ku/input -> AtBpiepuIUNs2k2ku
4040
// https://console.apify.com/actors/AtBpiepuIUNs2k2ku -> AtBpiepuIUNs2k2ku
41-
regex: `https://console.apify.com/actors/([a-zA-Z0-9]+)`,
41+
regex: `https://console.apify.com/actors/([a-zA-Z0-9]+).*`,
4242
},
4343
},
4444
{

nodes/Apify/resources/actorTaskResourceLocator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const resourceLocatorProperty: INodeProperties = {
2929
properties: {
3030
// https://console.apify.com/actors/tasks/WAtmhr6rhfBnwqKDY/input
3131
// https://console.apify.com/actors/tasks/WAtmhr6rhfBnwqKDY
32-
regex: 'https://console.apify.com/actors/tasks/([a-zA-Z0-9]+)(/input)?',
32+
regex: 'https://console.apify.com/actors/tasks/([a-zA-Z0-9]+).*',
3333
errorMessage: 'Not a valid Apify Actor Task URL',
3434
},
3535
},
@@ -38,7 +38,7 @@ const resourceLocatorProperty: INodeProperties = {
3838
type: 'regex',
3939
// https://console.apify.com/actors/tasks/WAtmhr6rhfBnwqKDY/input -> WAtmhr6rhfBnwqKDY
4040
// https://console.apify.com/actors/tasks/WAtmhr6rhfBnwqKDY -> WAtmhr6rhfBnwqKDY
41-
regex: 'https://console.apify.com/actors/tasks/([a-zA-Z0-9]+)',
41+
regex: 'https://console.apify.com/actors/tasks/([a-zA-Z0-9]+).*',
4242
},
4343
},
4444
{

nodes/Apify/resources/runResourceLocator.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@ const resourceLocatorProperty: INodeProperties = {
2828
type: 'regex',
2929
properties: {
3030
// https://console.apify.com/actors/runs/RDfcScrqIYHW0jfNF#output
31-
regex:
32-
'https://console.apify.com/actors(/[a-zA-Z0-9]+)?/runs/([a-zA-Z0-9]+)(#(output|log))?',
31+
regex: 'https://console.apify.com/actors(/[a-zA-Z0-9]+)?/runs/([a-zA-Z0-9]+).*',
3332
errorMessage: 'Not a valid Apify Actor Run URL',
3433
},
3534
},
3635
],
3736
extractValue: {
3837
type: 'regex',
3938
// https://console.apify.com/actors/runs/RDfcScrqIYHW0jfNF#output -> RDfcScrqIYHW0jfNF
40-
regex: 'https://console.apify.com/actors(?:/[a-zA-Z0-9]+)?/runs/([a-zA-Z0-9]+)',
39+
regex: 'https://console.apify.com/actors(?:/[a-zA-Z0-9]+)?/runs/([a-zA-Z0-9]+).*',
4140
},
4241
},
4342
{

0 commit comments

Comments
 (0)