character-class-escape-sets.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // Generated by `/scripts/character-class-escape-sets.js`. Do not edit.
  2. var regenerate = require('regenerate');
  3. exports.REGULAR = {
  4. 'd': regenerate()
  5. .addRange(0x30, 0x39),
  6. 'D': regenerate()
  7. .addRange(0x0, 0x2F)
  8. .addRange(0x3A, 0xFFFF),
  9. 's': regenerate(0x20, 0xA0, 0x1680, 0x202F, 0x205F, 0x3000, 0xFEFF)
  10. .addRange(0x9, 0xD)
  11. .addRange(0x2000, 0x200A)
  12. .addRange(0x2028, 0x2029),
  13. 'S': regenerate()
  14. .addRange(0x0, 0x8)
  15. .addRange(0xE, 0x1F)
  16. .addRange(0x21, 0x9F)
  17. .addRange(0xA1, 0x167F)
  18. .addRange(0x1681, 0x1FFF)
  19. .addRange(0x200B, 0x2027)
  20. .addRange(0x202A, 0x202E)
  21. .addRange(0x2030, 0x205E)
  22. .addRange(0x2060, 0x2FFF)
  23. .addRange(0x3001, 0xFEFE)
  24. .addRange(0xFF00, 0xFFFF),
  25. 'w': regenerate(0x5F)
  26. .addRange(0x30, 0x39)
  27. .addRange(0x41, 0x5A)
  28. .addRange(0x61, 0x7A),
  29. 'W': regenerate(0x60)
  30. .addRange(0x0, 0x2F)
  31. .addRange(0x3A, 0x40)
  32. .addRange(0x5B, 0x5E)
  33. .addRange(0x7B, 0xFFFF)
  34. };
  35. exports.UNICODE = {
  36. 'd': regenerate()
  37. .addRange(0x30, 0x39),
  38. 'D': regenerate()
  39. .addRange(0x0, 0x2F)
  40. .addRange(0x3A, 0x10FFFF),
  41. 's': regenerate(0x20, 0xA0, 0x1680, 0x202F, 0x205F, 0x3000, 0xFEFF)
  42. .addRange(0x9, 0xD)
  43. .addRange(0x2000, 0x200A)
  44. .addRange(0x2028, 0x2029),
  45. 'S': regenerate()
  46. .addRange(0x0, 0x8)
  47. .addRange(0xE, 0x1F)
  48. .addRange(0x21, 0x9F)
  49. .addRange(0xA1, 0x167F)
  50. .addRange(0x1681, 0x1FFF)
  51. .addRange(0x200B, 0x2027)
  52. .addRange(0x202A, 0x202E)
  53. .addRange(0x2030, 0x205E)
  54. .addRange(0x2060, 0x2FFF)
  55. .addRange(0x3001, 0xFEFE)
  56. .addRange(0xFF00, 0x10FFFF),
  57. 'w': regenerate(0x5F)
  58. .addRange(0x30, 0x39)
  59. .addRange(0x41, 0x5A)
  60. .addRange(0x61, 0x7A),
  61. 'W': regenerate(0x60)
  62. .addRange(0x0, 0x2F)
  63. .addRange(0x3A, 0x40)
  64. .addRange(0x5B, 0x5E)
  65. .addRange(0x7B, 0x10FFFF)
  66. };
  67. exports.UNICODE_IGNORE_CASE = {
  68. 'd': regenerate()
  69. .addRange(0x30, 0x39),
  70. 'D': regenerate()
  71. .addRange(0x0, 0x2F)
  72. .addRange(0x3A, 0x10FFFF),
  73. 's': regenerate(0x20, 0xA0, 0x1680, 0x202F, 0x205F, 0x3000, 0xFEFF)
  74. .addRange(0x9, 0xD)
  75. .addRange(0x2000, 0x200A)
  76. .addRange(0x2028, 0x2029),
  77. 'S': regenerate()
  78. .addRange(0x0, 0x8)
  79. .addRange(0xE, 0x1F)
  80. .addRange(0x21, 0x9F)
  81. .addRange(0xA1, 0x167F)
  82. .addRange(0x1681, 0x1FFF)
  83. .addRange(0x200B, 0x2027)
  84. .addRange(0x202A, 0x202E)
  85. .addRange(0x2030, 0x205E)
  86. .addRange(0x2060, 0x2FFF)
  87. .addRange(0x3001, 0xFEFE)
  88. .addRange(0xFF00, 0x10FFFF),
  89. 'w': regenerate(0x5F, 0x17F, 0x212A)
  90. .addRange(0x30, 0x39)
  91. .addRange(0x41, 0x5A)
  92. .addRange(0x61, 0x7A),
  93. 'W': regenerate(0x4B, 0x53, 0x60)
  94. .addRange(0x0, 0x2F)
  95. .addRange(0x3A, 0x40)
  96. .addRange(0x5B, 0x5E)
  97. .addRange(0x7B, 0x10FFFF)
  98. };