PageSourceSearch

https://pika.page/assets/clone-regexp-9159d87431cf2f36357cf3f2a1ced306a8c0b6503a65ebd91e4a13854fd00e45.js

js pika.page collected 2026-10-03 21:41:24 UTC 520 bytes, 4 lines download raw bytes

1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.js
2
3import e from"is-regexp";const n={global:"g",ignoreCase:"i",multiline:"m",dotAll:"s",sticky:"y",unicode:"u"};function clonedRegexp(o,t={}){if(!e(o))throw new TypeError("Expected a RegExp instance");const s=Object.keys(n).map((e=>("boolean"===typeof t[e]?t[e]:o[e])?n[e]:"")).join("");const l=new RegExp(t.source||o.source,s);l.lastIndex="number"===typeof t.lastIndex?t.lastIndex:o.lastIndex;return l}export default clonedRegexp;
4

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.