File tree 1 file changed +14
-13
lines changed
1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -250,26 +250,27 @@ def normalize_paths(paths):
250
250
"features/Test\ Features/feature.cpp" => "features/Test Features/feature.cpp"
251
251
"""
252
252
return [path .replace ("\\ " ,"" ) for path in paths ]
253
+
253
254
def split_list_arg (arg ):
254
255
"""
255
256
If arg is a list containing a single argument it is split into multiple elements.
256
257
Otherwise it is returned unchanged
257
258
Workaround for GHA not allowing list arguments
258
259
"""
259
260
pattern = r'(?<!\\)\s+'
260
- if len (arg ) == 1 :
261
- # split list by regex
262
- paths = re .split (pattern , arg [0 ])
263
- print (paths )
264
- paths = normalize_paths (paths )
265
- # for path in paths:
266
- # print(path)
267
- # # normalize paths by removing forward slashes
268
- # path = path.replace("\\", "dfgdf")
269
- # print(path)
270
- print (paths )
271
- return paths
272
- return arg [0 ]. split ( ) if len (arg ) == 1 else arg
261
+ # if len(arg) == 1:
262
+ # # split list by regex
263
+ # paths = re.split(pattern, arg[0])
264
+ # print(paths)
265
+ # paths = normalize_paths(paths)
266
+ # # for path in paths:
267
+ # # print(path)
268
+ # # # normalize paths by removing forward slashes
269
+ # # path = path.replace("\\", "dfgdf")
270
+ # # print(path)
271
+ # print(paths)
272
+ # return paths
273
+ return normalize_paths ( re . split ( pattern , arg [0 ]) ) if len (arg ) == 1 else arg
273
274
274
275
275
276
def main ():
You can’t perform that action at this time.
0 commit comments