Skip to content

Commit aa1021b

Browse files
author
igba.ujege
committed
Added capture jvs
1 parent 40a438d commit aa1021b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const env_regex = /^([a-zA-Z0-9-]+\.)?api\.service\.nhs\.uk/gm;
2+
var hostname_env = request.headers.host;
3+
hostname_env = hostname_env.match(env_regex, request.headers.host)[0];
4+
context.setVariable("request_hostname_env", hostname_env);

0 commit comments

Comments
 (0)