Cleanup init commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// Token display: leading/trailing spaces made visible with ˽ (like the original
|
||||
// JLens) — ' Paris' → '˽Paris', 'foo ' → 'foo˽'. Without this it's impossible to
|
||||
// tell ' Euro' from 'Euro' in the UI.
|
||||
export function fmtTok(s) {
|
||||
if (s == null) return ''
|
||||
return String(s).replace(/^ +| +$/g, (m) => '˽'.repeat(m.length))
|
||||
}
|
||||
Reference in New Issue
Block a user