We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89fd0d commit daf9a5eCopy full SHA for daf9a5e
src/jarvis/jarvis/action_manager.py
@@ -17,7 +17,7 @@ def open_website_in_browser(cls, words):
17
Opens a web page in the browser.
18
:param words: string (e.g Open the site youtube)
19
"""
20
- reg_ex = re.search(TRIGGERING_WORDS['open_browser'] + ' (.+)', words)
+ reg_ex = re.search(TRIGGERING_WORDS['open_browser'] + ' ([a-zA-Z]+)', words)
21
if reg_ex:
22
domain = reg_ex.group(1)
23
assistant_response('Yes sir, I will open the {0}'.format(domain))
0 commit comments