File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments