(/** @type {string} */ label)
| 2006 | const out = []; |
| 2007 | const skipFn = |
| 2008 | (/** @type {string} */ label) => |
| 2009 | ( |
| 2010 | /** @type {string} */ input, |
| 2011 | /** @type {number} */ start, |
| 2012 | /** @type {number} */ end, |
| 2013 | /** @type {number} */ ns, |
| 2014 | /** @type {number} */ ne |
| 2015 | ) => { |
| 2016 | out.push([label, input.slice(ns, ne)]); |
| 2017 | // Skip one character past `>` so nextPos > end. |
| 2018 | return end + 1; |
| 2019 | }; |
| 2020 | walkHtmlTokens( |
| 2021 | "<script>x</script>" + |
| 2022 | "<a foo>y</a>" + |
no test coverage detected