Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

How do I exclude tags with whitespaces? #224

Closed Answered by simonbrowndotje
beffge asked this question in Q&A
Discussion options

You must be logged in to vote

From https://github.com/structurizr/dsl/blob/master/docs/language-reference.md#general-rules:

Double quote characters ("...") are optional when a property/expression contains no whitespace.

So:

exclude element.tag==Amazon Web Services - RDS

is equivalent to:

exclude "element.tag==Amazon" "Web" "Services" "-" "RDS"

Since there is no element with the identifier "Web", the DSL parser is failing.

To answer your question, you'll need double quotes.

exclude "element.tag==Amazon Web Services - RDS"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@beffge
Comment options

Answer selected by beffge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #223 on February 17, 2023 07:04.