parent
dfbd0829e7
commit
efc08759ce
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@ Scope {
|
|||
} else {
|
||||
buffer = buffer.slice(0, -1);
|
||||
}
|
||||
} else if (" abcdefghijklmnopqrstuvwxyz1234567890`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?".includes(event.text.toLowerCase())) {
|
||||
// No illegal characters (you are insane if you use unicode in your password)
|
||||
} else if (/^[^\x00-\x1F\x7F-\x9F]+$/.test(event.text)) {
|
||||
// Allow anything except control characters
|
||||
buffer += event.text;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue