Skip to content

Commit 107ed38

Browse files
Rebased on main
1 parent 3c79ebd commit 107ed38

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

src/techui_builder/builder.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ def generate_screens(self):
124124
)
125125
for prefix in filtered_prefixes:
126126
screen_entities.extend(self.entities[prefix])
127-
<<<<<<< HEAD
128-
else:
129-
LOGGER.warning(
130-
f"{self.techui.name}: [bold]{component.prefix}[/bold] set in \
131-
[bold]{component_name}[/bold] does not match any P field in the ioc.yaml \
132-
files in services"
133-
)
134-
=======
135-
>>>>>>> 3054d0f (Removed false messaging from component prefix not being found using wildcards)
136127
# If the component prefix is in entities.keys, add to screen entities
137128
elif component.prefix in self.entities.keys():
138129
screen_entities.extend(self.entities[component.prefix])

src/techui_builder/models.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@
2424
r"""
2525
^ # start of string
2626
(?= # lookahead to ensure the following pattern matches
27-
[A-Za-z0-9-]{13,16} # match 13 to 16 alphanumeric characters or hyphens
28-
[:A-Za-z0-9]* # match zero or more colons or alphanumeric characters
29-
[.A-Za-z0-9] # match a dot or alphanumeric character
27+
[A-Za-z0-9*?\[\]-]{2,16} # match 2-16 alphanumeric chars,-/wildcards
28+
[:A-Za-z0-9*?[\]]* # match >=0 colons or alphanumeric chars/wildcards
29+
[.A-Za-z0-9*?[\]] # match a dot or alphanumeric chars or wildcards
3030
)
3131
(?!.*--) # negative lookahead to ensure no double hyphens
3232
(?!.*:\..) # negative lookahead to ensure no colon followed by a dot
3333
( # start of capture group 1
34-
(?:[A-Za-z0-9]{2,5}-){3} # match 2 to 5 alphanumeric characters followed
34+
(?:[A-Za-z0-9*?,\[\]-])* # match >1 alphanumeric characters followed
3535
# by a hyphen, repeated 3 times
36-
[\d]* # match zero or more digits
36+
[\d*] # match zero or more digits
3737
[^:]? # match zero or one non-colon character
3838
)
39-
(?::([a-zA-Z0-9:]*))? # match zero or one colon followed by zero or more
39+
(?::([a-zA-Z0-9*:]*))? # match zero or one colon followed by zero or more
4040
# alphanumeric characters or colons (capture group 2)
41-
(?:\.([a-zA-Z0-9]+))? # match zero or one dot followed by one or more
41+
(?:\.([a-zA-Z0-9*]+))? # match zero or one dot followed by one or more
4242
# alphanumeric characters (capture group 3)
4343
$ # end of string
4444
""",
45-
re.VERBOSE,
45+
re.VERBOSE | re.UNICODE,
4646
)
4747
_LONG_DOM_RE = re.compile(r"^[a-zA-Z]{2}\d{2}[a-zA-Z]$")
4848
_SHORT_DOM_RE = re.compile(r"^[a-zA-Z]{1}\d{2}(-[0-9]{1})?$")

0 commit comments

Comments
 (0)