23 lines
596 B
JavaScript
23 lines
596 B
JavaScript
import { IndexInterface } from "../../type.js";
|
|
import { pipeline, normalize, regex_whitespace } from "../../lang.js";
|
|
|
|
export const rtl = /* normalize: */
|
|
/* collapse: */ /* normalize: */ /* collapse: */ /* normalize: */ /* collapse: */
|
|
/* normalize: */
|
|
/* collapse: */!1;
|
|
export const tokenize = "";
|
|
export default {
|
|
encode: encode,
|
|
rtl: !1,
|
|
tokenize: ""
|
|
|
|
/**
|
|
* @param {string|number} str
|
|
* @this IndexInterface
|
|
*/
|
|
|
|
};export function encode(str) {
|
|
|
|
return pipeline.call(this,
|
|
/* string: */("" + str).toLowerCase(), !1, /* split: */regex_whitespace, !1);
|
|
} |