1import { Controller } from '@hotwired/stimulus' 2 3export default class extends Controller { 4 static targets = ['label'] 5 6 get value() { 7 return this.element.querySelector('input').value 8 } 9 10 handleChange() { 11 const fileName = this.value.replace(/^.*[\\\/]/, '') 12 this.labelTarget.textContent = fileName 13 this.labelTarget.classList.add('success') 14 } 15};
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.