swedbank-pay-design-guide-jekyll-theme 2.6.5 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 967dc285e684596cccf27b701ca662230f4c82bc2905a5e33fb0adf1bccd627c
4
- data.tar.gz: acfd4758899daafbad0d21de89e637555ec2708b058d51ebc075a97d62a63d7e
3
+ metadata.gz: fb0ae82de63170e3e43c9046f6a95535149d3dc2825324ca18467d6310388ea3
4
+ data.tar.gz: cdcaeaa0b671831565101f0bfb407f6e69d0ad56b7e9097c5b870bead93fc048
5
5
  SHA512:
6
- metadata.gz: 26196b8a51a0a46c99b520f472875378585bb35c226ec1edb3f27aea0f3b7f948e0a821d09314b268a6eedef01de7c9546659fc5dca88e3c90944277d00e421f
7
- data.tar.gz: fe2e1606ee98f1550cd46a5dcf09c9d07619a13eb15cc3203aa39bf6b2cb630e7053df3c6d04119fe90735a18346ddb64c0afcd4f672baf75cb4d5159c1673d6
6
+ metadata.gz: 25de1dd2d5680e6c71128d1714b589163c1248679775f386507a2c8fdbae5130007481f1edac122df4f67d08caa3160a6baa41522111f7a0ef238e83b1be6d56
7
+ data.tar.gz: de3541206f4b1ca910b6b4c703eb89109046a7e4cf8a2f307973057d61e14ed273ebba17082beff15033ba58888679c5d5c3c7205bac58d0e062384eae4b821c
@@ -37,7 +37,8 @@
37
37
  var show_replace = false;
38
38
  var show_stop = false;
39
39
  var standard = true;
40
- var c = 0; found = [];
40
+ var c = 0;
41
+ found = [];
41
42
  var d_o = $('#tipue_search_input').val();
42
43
  var d = d_o.toLowerCase();
43
44
  d = $.trim(d);
@@ -85,7 +86,12 @@
85
86
  pat = new RegExp(d_w[f].substring(1), 'i'); if (tipuesearch_in.pages[i].title.search(pat) != -1 || tipuesearch_in.pages[i].text.search(pat) != -1 || tipuesearch_in.pages[i].tags.search(pat) != -1) { score = 0; }
86
87
  }
87
88
  }
88
- if (score != 0) { found.push({ "score": score, "title": tipuesearch_in.pages[i].title, "desc": s_t, "url": tipuesearch_in.pages[i].url }); c++; }
89
+ if (score != 0) {
90
+ if (tipuesearch_in.pages[i].title && s_t) {
91
+ found.push({ "score": score, "title": tipuesearch_in.pages[i].title, "desc": s_t, "url": tipuesearch_in.pages[i].url });
92
+ c++;
93
+ }
94
+ }
89
95
  }
90
96
  }
91
97
  else {
@@ -99,7 +105,12 @@
99
105
  if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url) { score += tipuesearch_weight.weight[e].score; }
100
106
  }
101
107
  }
102
- if (score != 0) { found.push({ "score": score, "title": tipuesearch_in.pages[i].title, "desc": s_t, "url": tipuesearch_in.pages[i].url }); c++; }
108
+ if (score != 0) {
109
+ if (tipuesearch_in.pages[i].title && s_t) {
110
+ found.push({ "score": score, "title": tipuesearch_in.pages[i].title, "desc": s_t, "url": tipuesearch_in.pages[i].url });
111
+ c++;
112
+ }
113
+ }
103
114
  }
104
115
  }
105
116
  if (c != 0) {
@@ -109,9 +120,6 @@
109
120
  out += '<div id="tipue_search_results_count">' + tipuesearch_string_4;
110
121
  }
111
122
  else {
112
- if (found[c - 1] && !found[c - 1].title && !found[c - 1].desc) {
113
- c = c - 1; // If the last item has no title and no description, we remove it from the count
114
- }
115
123
  c_c = c.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
116
124
  out += '<div id="tipue_search_results_count">' + c_c + ' ' + tipuesearch_string_5;
117
125
  }
data/lib/gem_version.rb CHANGED
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.6.5'
7
+ '2.6.6'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swedbank-pay-design-guide-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay