Skip to content

Commit

Permalink
chore: remove version extraction from domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Dec 11, 2024
1 parent 2d6d549 commit 39aa6ac
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scripts/build_twilio_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@ def get_domain_info(oai_spec_location: str, domain: str, is_file: bool = False)
parts = re.split(r'twilio_(.+?)_?(v\d+)?\.', domain, flags=re.IGNORECASE)
domain_name = parts[1]
api_version = parts[2] or ''
# special handling for files like twilio_lookups_bulk.json.
# This has to be removed when naming is made consistent across all languages
if api_version == '':
index = domain_name.find('_')
if index != -1:
domain_parts = re.split(r'(.+)_(.+)', domain_name, flags=re.IGNORECASE)
domain_name = domain_parts[1]
api_version = domain_parts[2]
return full_path, domain_name, api_version


Expand Down

0 comments on commit 39aa6ac

Please sign in to comment.