-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #807 from rdbende/search-page
Search UI overhaul
- Loading branch information
Showing
17 changed files
with
507 additions
and
753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
import re | ||
from typing import Set | ||
|
||
|
||
def split_strings_to_set(set_to_split: Set[str]): | ||
finished = set() | ||
for entry in set_to_split: | ||
results = re.split(",|;|/|&", entry) | ||
results = { | ||
entry.strip() | ||
for entry in results | ||
} | ||
|
||
finished.update(results) | ||
|
||
return finished | ||
def split_strings_to_set(set_to_split: set[str]) -> set[str]: | ||
return {entry.strip() for item in set_to_split for entry in re.split(",|;|/|&", item)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.