PageSourceSearch

https://www.domovtavikovice.cz/DPSMain/media/system/js/pux-helpers-string.js

js domovtavikovice.cz collected 2026-09-26 21:33:51 UTC 603 bytes, 24 lines download raw bytes

1pux = window.pux || {};
2
3// strings
4
5pux.helpers = pux.helpers || {};
6pux.helpers.string = {
7    trimLeft: function (text, charlist) {
8        if (charlist === undefined)
9            charlist = "\s";
10
11        return text.replace(new RegExp("^[" + charlist + "]+"), "");
12    },
13
14    trimRight: function (text, charlist) {
15        if (charlist === undefined)
16            charlist = "\s";
17
18        return text.replace(new RegExp("[" + charlist + "]+$"), "");
19    },
20
21    trim: function (text, charlist) {
22        return this.trimRight(this.trimLeft(text, charlist),charlist);
23    }
24}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.