Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(lunr): some optimizing lib/lunr/*.js (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanerel authored May 18, 2020
1 parent e5ae1d6 commit c1016df
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.TinySegmenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;(function (root, factory) {
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory)
Expand Down Expand Up @@ -203,4 +203,4 @@
lunr.TinySegmenter = TinySegmenter;
};

}));
}));
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -378,4 +378,4 @@

lunr.Pipeline.registerFunction(lunr.ar.stopWordFilter, 'stopWordFilter-ar');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.da.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -281,4 +281,4 @@

lunr.Pipeline.registerFunction(lunr.da.stopWordFilter, 'stopWordFilter-da');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.de.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -381,4 +381,4 @@

lunr.Pipeline.registerFunction(lunr.de.stopWordFilter, 'stopWordFilter-de');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.du.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -447,4 +447,4 @@

lunr.Pipeline.registerFunction(lunr.du.stopWordFilter, 'stopWordFilter-du');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -596,4 +596,4 @@

lunr.Pipeline.registerFunction(lunr.es.stopWordFilter, 'stopWordFilter-es');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -700,4 +700,4 @@

lunr.Pipeline.registerFunction(lunr.fr.stopWordFilter, 'stopWordFilter-fr');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -562,4 +562,4 @@

lunr.Pipeline.registerFunction(lunr.hu.stopWordFilter, 'stopWordFilter-hu');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.it.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -614,4 +614,4 @@

lunr.Pipeline.registerFunction(lunr.it.stopWordFilter, 'stopWordFilter-it');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -185,4 +185,4 @@
lunr.Pipeline.registerFunction(lunr.jp.trimmer, 'trimmer-jp');
lunr.Pipeline.registerFunction(lunr.jp.stopWordFilter, 'stopWordFilter-jp');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -445,4 +445,4 @@

lunr.Pipeline.registerFunction(lunr.nl.stopWordFilter, 'stopWordFilter-nl');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.no.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -255,4 +255,4 @@

lunr.Pipeline.registerFunction(lunr.no.stopWordFilter, 'stopWordFilter-no');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -567,4 +567,4 @@

lunr.Pipeline.registerFunction(lunr.pt.stopWordFilter, 'stopWordFilter-pt');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -388,4 +388,4 @@

lunr.Pipeline.registerFunction(lunr.ru.stopWordFilter, 'stopWordFilter-ru');
};
}))
}))
2 changes: 1 addition & 1 deletion assets/lib/lunr/lunr.stemmer.support.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;(function (root, factory) {
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory)
Expand Down
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.sv.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -253,4 +253,4 @@

lunr.Pipeline.registerFunction(lunr.sv.stopWordFilter, 'stopWordFilter-sv');
};
}))
}))
2 changes: 1 addition & 1 deletion assets/lib/lunr/lunr.th.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -1084,4 +1084,4 @@

lunr.Pipeline.registerFunction(lunr.tr.stopWordFilter, 'stopWordFilter-tr');
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.vi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -81,4 +81,4 @@
lunr.Pipeline.registerFunction(lunr.vi.trimmer, 'trimmer-vi');
lunr.vi.stopWordFilter = lunr.generateStopWordFilter('là cái nhưng mà'.split(' '));
};
}))
}))
4 changes: 2 additions & 2 deletions assets/lib/lunr/lunr.zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* export the module via AMD, CommonJS or as a browser global
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
*/
;

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down Expand Up @@ -138,4 +138,4 @@
'的 一 不 在 人 有 是 为 以 于 上 他 而 后 之 来 及 了 因 下 可 到 由 这 与 也 此 但 并 个 其 已 无 小 我 们 起 最 再 今 去 好 只 又 或 很 亦 某 把 那 你 乃 它 吧 被 比 别 趁 当 从 到 得 打 凡 儿 尔 该 各 给 跟 和 何 还 即 几 既 看 据 距 靠 啦 了 另 么 每 们 嘛 拿 哪 那 您 凭 且 却 让 仍 啥 如 若 使 谁 虽 随 同 所 她 哇 嗡 往 哪 些 向 沿 哟 用 于 咱 则 怎 曾 至 致 着 诸 自'.split(' '));
lunr.Pipeline.registerFunction(lunr.zh.stopWordFilter, 'stopWordFilter-zh');
};
}))
}))

0 comments on commit c1016df

Please sign in to comment.