Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f754ab4 commit efa6385Copy full SHA for efa6385
twilio/twiml/__init__.py
@@ -19,7 +19,7 @@ def format_language(language):
19
if not language:
20
return language
21
22
- if not re.match('^\w\w[_-]\w\w$', language):
+ if not re.match('^[a-zA-Z]{2}[_-][a-zA-Z]{2}$', language):
23
raise TwiMLException('Invalid value for language parameter.')
24
25
return language[0:2].lower() + '-' + language[3:5].upper()
0 commit comments