1const o={decimal:/^((0(\.\d{0,2})?)|((?!0)\d+(\.\d{0,2})?))$/,numeric:/^\d+$/,nowhitespace:/^\S+$/},r={decimal:[",","."],nowhitespace:[/\s/g,""],numeric:[/\D/g,""]};function s({value:e,pattern:t}){return e=String(e),t&&r[t]&&(e=e.replace(...r[t])),!!(!t||e===""||o[t].test(e))}function d({value:e,pattern:t,field:i}){e=String(e);let n=e;if(t&&r[t]&&(n=e.replace(...r[t]),i&&n!==e)){const a=i.selectionStart,l=i.selectionEnd;i.value=n,i.selectionStart=a-1,i.selectionEnd=l-1}return n}export{d as S,s as m};
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.