'use strict' // Maps of subsets. // Each value is a matrix of tuples. // The first value causes parse errors, the second is valid. // Of both values, the first value is unsafe, and the second is safe. module.exports = { // See: . name: [ ['\t\n\f\r &/=>'.split(''), '\t\n\f\r "&\'/=>`'.split('')], ['\0\t\n\f\r "&\'/<=>'.split(''), '\0\t\n\f\r "&\'/<=>`'.split('')] ], // See: . unquoted: [ ['\t\n\f\r &>'.split(''), '\0\t\n\f\r "&\'<=>`'.split('')], ['\0\t\n\f\r "&\'<=>`'.split(''), '\0\t\n\f\r "&\'<=>`'.split('')] ], // See: . single: [ ["&'".split(''), '"&\'`'.split('')], ["\0&'".split(''), '\0"&\'`'.split('')] ], // See: . double: [ ['"&'.split(''), '"&\'`'.split('')], ['\0"&'.split(''), '\0"&\'`'.split('')] ] }