constants.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. 'use strict';
  2. module.exports = {
  3. MAX_LENGTH: 10000,
  4. // Digits
  5. CHAR_0: '0', /* 0 */
  6. CHAR_9: '9', /* 9 */
  7. // Alphabet chars.
  8. CHAR_UPPERCASE_A: 'A', /* A */
  9. CHAR_LOWERCASE_A: 'a', /* a */
  10. CHAR_UPPERCASE_Z: 'Z', /* Z */
  11. CHAR_LOWERCASE_Z: 'z', /* z */
  12. CHAR_LEFT_PARENTHESES: '(', /* ( */
  13. CHAR_RIGHT_PARENTHESES: ')', /* ) */
  14. CHAR_ASTERISK: '*', /* * */
  15. // Non-alphabetic chars.
  16. CHAR_AMPERSAND: '&', /* & */
  17. CHAR_AT: '@', /* @ */
  18. CHAR_BACKSLASH: '\\', /* \ */
  19. CHAR_BACKTICK: '`', /* ` */
  20. CHAR_CARRIAGE_RETURN: '\r', /* \r */
  21. CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */
  22. CHAR_COLON: ':', /* : */
  23. CHAR_COMMA: ',', /* , */
  24. CHAR_DOLLAR: '$', /* . */
  25. CHAR_DOT: '.', /* . */
  26. CHAR_DOUBLE_QUOTE: '"', /* " */
  27. CHAR_EQUAL: '=', /* = */
  28. CHAR_EXCLAMATION_MARK: '!', /* ! */
  29. CHAR_FORM_FEED: '\f', /* \f */
  30. CHAR_FORWARD_SLASH: '/', /* / */
  31. CHAR_HASH: '#', /* # */
  32. CHAR_HYPHEN_MINUS: '-', /* - */
  33. CHAR_LEFT_ANGLE_BRACKET: '<', /* < */
  34. CHAR_LEFT_CURLY_BRACE: '{', /* { */
  35. CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */
  36. CHAR_LINE_FEED: '\n', /* \n */
  37. CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */
  38. CHAR_PERCENT: '%', /* % */
  39. CHAR_PLUS: '+', /* + */
  40. CHAR_QUESTION_MARK: '?', /* ? */
  41. CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */
  42. CHAR_RIGHT_CURLY_BRACE: '}', /* } */
  43. CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */
  44. CHAR_SEMICOLON: ';', /* ; */
  45. CHAR_SINGLE_QUOTE: '\'', /* ' */
  46. CHAR_SPACE: ' ', /* */
  47. CHAR_TAB: '\t', /* \t */
  48. CHAR_UNDERSCORE: '_', /* _ */
  49. CHAR_VERTICAL_LINE: '|', /* | */
  50. CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */
  51. };