|
@@ -515,7 +515,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
|
|
|
* match[4] - The resource ID (e.g., "anthropic.claude-3-sonnet-20240229-v1:0")
|
|
* match[4] - The resource ID (e.g., "anthropic.claude-3-sonnet-20240229-v1:0")
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
- const arnRegex = /^arn:aws:bedrock:([^:]+):([^:]*):(?:([^\/]+)\/(.+)|([^\/]+))$/
|
|
|
|
|
|
|
+ const arnRegex = /^arn:aws:bedrock:([^:]+):([^:]*):(?:([^\/]+)\/([\w\.\-:]+)|([^\/]+))$/
|
|
|
let match = arn.match(arnRegex)
|
|
let match = arn.match(arnRegex)
|
|
|
|
|
|
|
|
if (match && match[1] && match[3] && match[4]) {
|
|
if (match && match[1] && match[3] && match[4]) {
|