Skip to content

Commit 4c16f1a

Browse files
committed
Fix the regex
1 parent cddb5f9 commit 4c16f1a

File tree

1 file changed

+1
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def get_desired_resource_value_args(
414414
# Returns -1 if there is a problem with parsing the vm_size.
415415
def get_cores_from_sku(vm_size):
416416
cpu_value = -1
417-
pattern = r'(\d+)([a-z])*(?=_v(\d+)[^_]*$|$)'
417+
pattern = r'([a-z])+(\d+)[a-z]*(?=_v(\d+)[^_]*$|$)'
418418
match = re.search(pattern, vm_size.lower())
419419
if match:
420420
series_prefix = match.group(1)

0 commit comments

Comments
 (0)