Skip to content

Commit 3a93211

Browse files
authored
1 parent c0ddddf commit 3a93211

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

eng/automation/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def sdk_automation_autorest(config: dict) -> List[dict]:
153153

154154
for readme in config["relatedReadmeMdFiles"]:
155155
match = re.search(
156-
"specification/([^/]+)/resource-manager(/.*)*/readme.md",
156+
r"specification/([^/]+)/resource-manager((?:/[^/]+)*)/readme.md",
157157
readme,
158158
re.IGNORECASE,
159159
)
@@ -453,7 +453,7 @@ def main():
453453

454454
readme = args["readme"]
455455
match = re.match(
456-
r"specification/([^/]+)/resource-manager(/.*)*/readme.md",
456+
r"specification/([^/]+)/resource-manager((?:/[^/]+)*)/readme.md",
457457
readme,
458458
re.IGNORECASE,
459459
)

eng/automation/generate_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def sdk_automation(config: dict) -> List[dict]:
181181
readme_file_paths = []
182182
for file_path in config["relatedReadmeMdFiles"]:
183183
match = re.search(
184-
r"specification/([^/]+)/data-plane(/.*)*/readme.md",
184+
r"specification/([^/]+)/data-plane((?:/[^/]+)*)/readme.md",
185185
file_path,
186186
re.IGNORECASE,
187187
)

eng/automation/sdk_generate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ def codegen_sdk_automation(config: dict) -> List[dict]:
111111

112112
readme_file_path = config["relatedReadmeMdFile"]
113113
match = re.search(
114-
r"(specification)?/?([^/]+)/data-plane(/.*)*/readme.md",
114+
r"(specification)?/?([^/]+)/data-plane((?:/[^/]+)*)/readme.md",
115115
readme_file_path,
116116
re.IGNORECASE,
117117
)
118118
if not match:
119119
logging.info(
120-
"[Skip] readme path:%s does not format as specification/([^/]+)/data-plane(/.*)*/readme.md",
120+
"[Skip] readme path:%s does not format as specification/([^/]+)/data-plane((?:/[^/]+)*)/readme.md",
121121
readme_file_path,
122122
)
123123
return packages
@@ -162,7 +162,7 @@ def sdk_automation_autorest(config: dict) -> List[dict]:
162162

163163
readme = config["relatedReadmeMdFile"]
164164
match = re.search(
165-
"(specification)?/?([^/]+)/resource-manager(/.*)*/readme.md",
165+
r"(specification)?/?([^/]+)/resource-manager((?:/[^/]+)*)/readme.md",
166166
readme,
167167
re.IGNORECASE,
168168
)

0 commit comments

Comments
 (0)