Skip to content

Commit

Permalink
Fixed #68 #84
Browse files Browse the repository at this point in the history
  • Loading branch information
rachpt committed Jan 31, 2021
1 parent 9ce9af8 commit cf71add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lanzou/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ def auto_extract_clipboard(self):
if not self.watch_clipboard:
return
text = self.clipboard.text()
pat = r"(https?://(\w[-\w]*\.)?lanzou[six].com/[a-z]?[/a-zA-Z0-9]+)[^a-zA-Z0-9]*([a-zA-Z0-9]+)?"
pat = r"(https?://(\w[-\w]*\.)?lanzou[six].com/[a-z]?[-/a-zA-Z0-9]+)[^a-zA-Z0-9]*([a-zA-Z0-9]+)?"
for share_url, _, pwd in re.findall(pat, text):
if share_url and not self.get_shared_info_thread.isRunning():
self.line_share_url.setEnabled(False)
Expand Down
2 changes: 1 addition & 1 deletion lanzou/gui/workers/share.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, parent=None):
self.is_folder = ""
self._mutex = QMutex()
self._is_work = False
self._pat = r"(https?://(\w[-\w]*\.)?lanzou[six].com/[a-z]?[/a-zA-Z0-9]+)[^a-zA-Z0-9]*([a-zA-Z0-9]+\w+)?"
self._pat = r"(https?://(\w[-\w]*\.)?lanzou[six].com/[a-z]?[-/a-zA-Z0-9]+)[^a-zA-Z0-9]*([a-zA-Z0-9]+\w+)?"

def set_disk(self, disk):
self._disk = disk
Expand Down

0 comments on commit cf71add

Please sign in to comment.