lint cleanup
This commit is contained in:
parent
9cfeed0bdc
commit
ea8aac5781
|
@ -115,6 +115,7 @@ function _buildFilterTree(expr) {
|
|||
tree.name = '';
|
||||
tree.value = '';
|
||||
|
||||
/* JSSTYLED */
|
||||
if (!/[a-zA-Z0-9;\-]+[~><:]?=.+/.test(expr))
|
||||
throw new Error(expr + ' is invalid');
|
||||
|
||||
|
|
16
lib/index.js
16
lib/index.js
|
@ -19,21 +19,31 @@ var url = require('./url');
|
|||
|
||||
// Guid formatting
|
||||
|
||||
// N specifier, 32 digits:
|
||||
// N specifier, 32 digits:
|
||||
// 00000000000000000000000000000000
|
||||
/* JSSTYLED */
|
||||
var GUID_FORMAT_N = '{3}{2}{1}{0}{5}{4}{7}{6}{8}{9}{10}{11}{12}{13}{14}{15}';
|
||||
|
||||
// D specifier, 32 digits separated by hypens:
|
||||
// 00000000-0000-0000-0000-000000000000
|
||||
/* JSSTYLED */
|
||||
var GUID_FORMAT_D = '{3}{2}{1}{0}-{5}{4}-{7}{6}-{8}{9}-{10}{11}{12}{13}{14}{15}';
|
||||
|
||||
// B specifier, 32 digits separated by hyphens, enclosed in braces:
|
||||
// {00000000-0000-0000-0000-000000000000}
|
||||
/* JSSTYLED */
|
||||
var GUID_FORMAT_B = '{{3}{2}{1}{0}-{5}{4}-{7}{6}-{8}{9}-{10}{11}{12}{13}{14}{15}}';
|
||||
|
||||
// P specifier, 32 digits separated by hyphens, enclosed in parentheses:
|
||||
// (00000000-0000-0000-0000-000000000000)
|
||||
/* JSSTYLED */
|
||||
var GUID_FORMAT_P = '({3}{2}{1}{0}-{5}{4}-{7}{6}-{8}{9}-{10}{11}{12}{13}{14}{15})';
|
||||
// X specifier, Four hexadecimal values enclosed in braces,
|
||||
// where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces:
|
||||
|
||||
// X specifier, Four hexadecimal values enclosed in braces,
|
||||
// where the fourth value is a subset of eight hexadecimal values that is also
|
||||
// enclosed in braces:
|
||||
// {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}
|
||||
/* JSSTYLED */
|
||||
var GUID_FORMAT_X = '{0x{3}{2}{1}{0},0x{5}{4},0x{7}{6},{0x{8},0x{9},0x{10},0x{11},0x{12},0x{13},0x{14},0x{15}}}';
|
||||
|
||||
/// Hack a few things we need (i.e., "monkey patch" the prototype)
|
||||
|
|
Loading…
Reference in New Issue