mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-08 15:02:25 +03:00
refactor: prefer destruct syntax
Co-Authored-By: pimlie <pimlie@hotmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export default function escape(info, { tagIDKeyName }, escapeSequences = []) {
|
||||
continue
|
||||
}
|
||||
|
||||
let disableKey = disableOptionKeys[0]
|
||||
let [ disableKey ] = disableOptionKeys
|
||||
if (info[disableKey] && info[disableKey].includes(key)) {
|
||||
// this info[key] doesnt need to escaped if the option is listed in __dangerouslyDisableSanitizers
|
||||
escaped[key] = value
|
||||
|
||||
Reference in New Issue
Block a user