Skip to content

Commit

Permalink
[NEW] release 0.4.5.alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
eryx committed Aug 24, 2018
1 parent 14c9d6e commit d2d3d1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions datax/node-sphinxsearch.go
Expand Up @@ -632,6 +632,7 @@ func (it *NodeSphinxSearchEngine) Query(bukname string, q string, qs *QuerySet)

client.SetLimits(int(qs.offset), int(qs.limit), 1000, 0)
client.SetFilter("status", []uint64{1}, false)
client.SetMatchMode(sphinxsearch.SPH_MATCH_EXTENDED)

rss, err := client.Query(q, bukname, "")
if err != nil {
Expand Down Expand Up @@ -684,11 +685,10 @@ func sphTextFilter(txt string) string {
"'",
"<",
">",
" ",
"\r",
"\n",
} {
txt = strings.Replace(txt, v, "", -1)
txt = strings.Replace(txt, v, " ", -1)
}

return txt
Expand Down
3 changes: 2 additions & 1 deletion misc/inpack/inpack.spec
@@ -1,6 +1,6 @@
[project]
name = hooto-press
version = 0.4.4.alpha
version = 0.4.5.alpha
vendor = hooto.com
homepage = https://github.com/hooto/hpress
groups = app/other
Expand Down Expand Up @@ -47,6 +47,7 @@ webui/bs/3.3/fonts/
webui/octicons/
webui/open-iconic/
webui/katex/
misc/sphinxsearch

%js_compress
webui/bs/3.3/js/bootstrap.js
Expand Down
8 changes: 4 additions & 4 deletions webui/hp/js/main.js
Expand Up @@ -211,11 +211,11 @@ hp.mathRender = function(i, elem) {
"~/katex/0.10/katex.css",
"~/katex/0.10/katex.js",
], function() {
var txt = elem.innerHTML.replace(/\\‘/g, `\'`);
txt = txt.replace(/\\“/g, `\"`);
txt = txt.replace(/\&amp;/g, `&`);
var txt = elem.innerHTML.replace(/\\‘/g, "'");
txt = txt.replace(/\\“/g, "\"");
txt = txt.replace(/\&amp;/g, "&");
elem.innerHTML = katex.renderToString(txt, {
throwOnError: true
throwOnError: false
});
});
}
Expand Down

0 comments on commit d2d3d1a

Please sign in to comment.