Skip to content

Commit 52ca422

Browse files
Rebased on main
1 parent f5592be commit 52ca422

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
@@ -123,15 +123,6 @@ def generate_screens(self):
123123
)
124124
for prefix in filtered_prefixes:
125125
screen_entities.extend(self.entities[prefix])
126-
<<<<<<< HEAD
127-
else:
128-
LOGGER.warning(
129-
f"{self.techui.name}: [bold]{component.prefix}[/bold] set in \
130-
[bold]{component_name}[/bold] does not match any P field in the ioc.yaml \
131-
files in services"
132-
)
133-
=======
134-
>>>>>>> 3054d0f (Removed false messaging from component prefix not being found using wildcards)
135126
# If the component prefix is in entities.keys, add to screen entities
136127
elif component.prefix in self.entities.keys():
137128
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
@@ -25,25 +25,25 @@
2525
r"""
2626
^ # start of string
2727
(?= # lookahead to ensure the following pattern matches
28-
[A-Za-z0-9-]{13,16} # match 13 to 16 alphanumeric characters or hyphens
29-
[:A-Za-z0-9]* # match zero or more colons or alphanumeric characters
30-
[.A-Za-z0-9] # match a dot or alphanumeric character
28+
[A-Za-z0-9*?\[\]-]{2,16} # match 2-16 alphanumeric chars,-/wildcards
29+
[:A-Za-z0-9*?[\]]* # match >=0 colons or alphanumeric chars/wildcards
30+
[.A-Za-z0-9*?[\]] # match a dot or alphanumeric chars or wildcards
3131
)
3232
(?!.*--) # negative lookahead to ensure no double hyphens
3333
(?!.*:\..) # negative lookahead to ensure no colon followed by a dot
3434
( # start of capture group 1
35-
(?:[A-Za-z0-9]{2,5}-){3} # match 2 to 5 alphanumeric characters followed
35+
(?:[A-Za-z0-9*?,\[\]-])* # match >1 alphanumeric characters followed
3636
# by a hyphen, repeated 3 times
37-
[\d]* # match zero or more digits
37+
[\d*] # match zero or more digits
3838
[^:]? # match zero or one non-colon character
3939
)
40-
(?::([a-zA-Z0-9:]*))? # match zero or one colon followed by zero or more
40+
(?::([a-zA-Z0-9*:]*))? # match zero or one colon followed by zero or more
4141
# alphanumeric characters or colons (capture group 2)
42-
(?:\.([a-zA-Z0-9]+))? # match zero or one dot followed by one or more
42+
(?:\.([a-zA-Z0-9*]+))? # match zero or one dot followed by one or more
4343
# alphanumeric characters (capture group 3)
4444
$ # end of string
4545
""",
46-
re.VERBOSE,
46+
re.VERBOSE | re.UNICODE,
4747
)
4848
_LONG_DOM_RE = re.compile(r"^[a-z]{2}\d{2}[a-z]$")
4949
_SHORT_DOM_RE = re.compile(r"^[a-z]\d{2}$")

0 commit comments

Comments
 (0)