(s)
| 20965 | return 0 === U.matcher.regexIndex ? ((Y += s[0]), 1) : ((ae = !0), 0) |
| 20966 | } |
| 20967 | function doBeginMatch(s) { |
| 20968 | const o = s[0], |
| 20969 | i = s.rule, |
| 20970 | a = new Response(i), |
| 20971 | u = [i.__beforeBegin, i['on:begin']] |
| 20972 | for (const i of u) if (i && (i(s, a), a.isMatchIgnored)) return doIgnore(o) |
| 20973 | return ( |
| 20974 | i && |
| 20975 | i.endSameAsBegin && |
| 20976 | (i.endRe = (function escape(s) { |
| 20977 | return new RegExp(s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm') |
| 20978 | })(o)), |
| 20979 | i.skip |
| 20980 | ? (Y += o) |
| 20981 | : (i.excludeBegin && (Y += o), |
| 20982 | processBuffer(), |
| 20983 | i.returnBegin || i.excludeBegin || (Y = o)), |
| 20984 | startNewMode(i), |
| 20985 | i.returnBegin ? 0 : o.length |
| 20986 | ) |
| 20987 | } |
| 20988 | function doEndMatch(s) { |
| 20989 | const i = s[0], |
| 20990 | a = o.substr(s.index), |
no test coverage detected