Skip to content

Commit

Permalink
Fixed problem caused by whitespace at beginning of part/footprint sea…
Browse files Browse the repository at this point in the history
…rch terms.

* Changed script name from skidl_part_fp_search to zyc.
  • Loading branch information
Dave Vandenbout committed Oct 3, 2019
1 parent 623c515 commit 0010c66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
entry_points={
"console_scripts": [
"netlist_to_skidl = skidl.netlist_to_skidl_main:main",
"skidl_part_search = skidl.skidl_part_search:main",
],
"gui_scripts": [
"skidl_part_fp_search = skidl.search_gui.skidl_part_footprint_search:main",
"zyc = skidl.search_gui.skidl_part_footprint_search:main",
],
},
package_dir={"skidl": "skidl"},
Expand Down
2 changes: 1 addition & 1 deletion skidl/part_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def parse_search_terms(terms):
non-white chars to prevent the initial portion of a quoted string from being
gathered up as a non-white character sequence.
"""
return re.sub(r"((\".*?\")|(\S+))\s*", r"(?=.*(\1))", terms).replace('"', "") + ".*"
return re.sub(r"((\".*?\")|(\S+))\s*", r"(?=.*(\1))", terms.strip().rstrip()).replace('"', "") + ".*"


def search_parts_iter(terms, tool=None):
Expand Down
2 changes: 1 addition & 1 deletion skidl/search_gui/skidl_part_footprint_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from skidl.search_gui.skidl_footprint_search import FootprintSearchPanel
from skidl.search_gui.skidl_part_search import PartSearchPanel

APP_TITLE = "SKiDL Part/Footprint Search"
APP_TITLE = "zyc: SKiDL Part/Footprint Search"
APP_EXIT = 1
SHOW_HELP = 3
SHOW_ABOUT = 4
Expand Down
1 change: 1 addition & 0 deletions skidl/tools/kicad.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def _load_sch_lib_(self, filename=None, lib_search_paths_=None):
keywords="",
datasheet="",
description="",
search_text = "",
)
)

Expand Down

0 comments on commit 0010c66

Please sign in to comment.