Skip to content

Commit

Permalink
Add test case for single-quoted regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayrus committed Nov 28, 2024
1 parent 036bfd0 commit 5e924a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/visual/samples/terraform
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
aliases = ["www.${replace(var.domain_name, "/\\.$/", "")}"]
}

## Object with single-quoted regular expression
resource "aws_cloudfront_distribution" "s3_distribution_single_quote" {
aliases = ["www.${replace(var.domain_name, '/\\.$/', "")}"]
}

# Directives in string templates
locals {
policy = <<EOT
Expand Down

0 comments on commit 5e924a9

Please sign in to comment.