[gnome] Update gnome extensions

This commit is contained in:
2026-01-13 17:20:07 -05:00
parent 88bae496fd
commit 21fd01aa82
181 changed files with 1145 additions and 7773 deletions

View File

@ -144,6 +144,14 @@ const Device = GObject.registerClass({
return name.trim() && /^[^"',;:.!?()[\]<>]{1,32}$/.test(name);
}
static sanitizeName(name) {
// Remove all prohibited characters
const sanitized = name.replaceAll(/["',;:.!?()[\]<>]/g, '');
if (sanitized.length < 1)
throw new Error('No valid characters in device name!');
return sanitized;
}
get channel() {
if (this._channel === undefined)
this._channel = null;