gui: include _ in isfilec for B3 path expansion

Paths like /path/to/snake_case_file.php:82 now expand fully on B3.
This commit is contained in:
Levi Neely 2026-10-08 18:06:17 +02:00
parent 445a5232c2
commit e669be7b81
1 changed files with 2 additions and 2 deletions

View File

@ -338,9 +338,9 @@ Column {
var text = textEdit.getText(0, textEdit.length)
if (cursorPos < 0 || cursorPos > text.length) return null
// isfilec from acme: alphanumeric + . - + / : @
// isfilec from acme: alphanumeric + . - + / : @ _
function isfilec(ch) {
return /[a-zA-Z0-9.\-+\/:@]/.test(ch)
return /[a-zA-Z0-9.\-+\/:@_]/.test(ch)
}
// Find start of word