mappings.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. 'use strict';
  2. module.exports = new Map([
  3. ['[0-9]', {value: '\\d'}],
  4. ['[^0-9]', {value: '\\D'}],
  5. // Word
  6. ['[a-zA-Z0-9_]', {value: '\\w'}],
  7. ['[a-zA-Z_0-9]', {value: '\\w'}],
  8. ['[a-z0-9A-Z_]', {value: '\\w'}],
  9. ['[a-z0-9_A-Z]', {value: '\\w'}],
  10. ['[a-z_A-Z0-9]', {value: '\\w'}],
  11. ['[a-z_0-9A-Z]', {value: '\\w'}],
  12. ['[A-Za-z0-9_]', {value: '\\w'}],
  13. ['[A-Za-z_0-9]', {value: '\\w'}],
  14. ['[A-Z0-9a-z_]', {value: '\\w'}],
  15. ['[A-Z0-9_a-z]', {value: '\\w'}],
  16. ['[A-Z_a-z0-9]', {value: '\\w'}],
  17. ['[A-Z_0-9a-z]', {value: '\\w'}],
  18. ['[0-9a-zA-Z_]', {value: '\\w'}],
  19. ['[0-9a-z_A-Z]', {value: '\\w'}],
  20. ['[0-9A-Za-z_]', {value: '\\w'}],
  21. ['[0-9A-Z_a-z]', {value: '\\w'}],
  22. ['[0-9_a-zA-Z]', {value: '\\w'}],
  23. ['[0-9_A-Za-z]', {value: '\\w'}],
  24. ['[_a-zA-Z0-9]', {value: '\\w'}],
  25. ['[_a-z0-9A-Z]', {value: '\\w'}],
  26. ['[_A-Za-z0-9]', {value: '\\w'}],
  27. ['[_A-Z0-9a-z]', {value: '\\w'}],
  28. ['[_0-9a-zA-Z]', {value: '\\w'}],
  29. ['[_0-9A-Za-z]', {value: '\\w'}],
  30. // Word with digit
  31. ['[a-zA-Z\\d_]', {value: '\\w'}],
  32. ['[a-zA-Z_\\d]', {value: '\\w'}],
  33. ['[a-z\\dA-Z_]', {value: '\\w'}],
  34. ['[a-z\\d_A-Z]', {value: '\\w'}],
  35. ['[a-z_A-Z\\d]', {value: '\\w'}],
  36. ['[a-z_\\dA-Z]', {value: '\\w'}],
  37. ['[A-Za-z\\d_]', {value: '\\w'}],
  38. ['[A-Za-z_\\d]', {value: '\\w'}],
  39. ['[A-Z\\da-z_]', {value: '\\w'}],
  40. ['[A-Z\\d_a-z]', {value: '\\w'}],
  41. ['[A-Z_a-z\\d]', {value: '\\w'}],
  42. ['[A-Z_\\da-z]', {value: '\\w'}],
  43. ['[\\da-zA-Z_]', {value: '\\w'}],
  44. ['[\\da-z_A-Z]', {value: '\\w'}],
  45. ['[\\dA-Za-z_]', {value: '\\w'}],
  46. ['[\\dA-Z_a-z]', {value: '\\w'}],
  47. ['[\\d_a-zA-Z]', {value: '\\w'}],
  48. ['[\\d_A-Za-z]', {value: '\\w'}],
  49. ['[_a-zA-Z\\d]', {value: '\\w'}],
  50. ['[_a-z\\dA-Z]', {value: '\\w'}],
  51. ['[_A-Za-z\\d]', {value: '\\w'}],
  52. ['[_A-Z\\da-z]', {value: '\\w'}],
  53. ['[_\\da-zA-Z]', {value: '\\w'}],
  54. ['[_\\dA-Za-z]', {value: '\\w'}],
  55. // Non-word
  56. ['[^a-zA-Z0-9_]', {value: '\\W'}],
  57. ['[^a-zA-Z_0-9]', {value: '\\W'}],
  58. ['[^a-z0-9A-Z_]', {value: '\\W'}],
  59. ['[^a-z0-9_A-Z]', {value: '\\W'}],
  60. ['[^a-z_A-Z0-9]', {value: '\\W'}],
  61. ['[^a-z_0-9A-Z]', {value: '\\W'}],
  62. ['[^A-Za-z0-9_]', {value: '\\W'}],
  63. ['[^A-Za-z_0-9]', {value: '\\W'}],
  64. ['[^A-Z0-9a-z_]', {value: '\\W'}],
  65. ['[^A-Z0-9_a-z]', {value: '\\W'}],
  66. ['[^A-Z_a-z0-9]', {value: '\\W'}],
  67. ['[^A-Z_0-9a-z]', {value: '\\W'}],
  68. ['[^0-9a-zA-Z_]', {value: '\\W'}],
  69. ['[^0-9a-z_A-Z]', {value: '\\W'}],
  70. ['[^0-9A-Za-z_]', {value: '\\W'}],
  71. ['[^0-9A-Z_a-z]', {value: '\\W'}],
  72. ['[^0-9_a-zA-Z]', {value: '\\W'}],
  73. ['[^0-9_A-Za-z]', {value: '\\W'}],
  74. ['[^_a-zA-Z0-9]', {value: '\\W'}],
  75. ['[^_a-z0-9A-Z]', {value: '\\W'}],
  76. ['[^_A-Za-z0-9]', {value: '\\W'}],
  77. ['[^_A-Z0-9a-z]', {value: '\\W'}],
  78. ['[^_0-9a-zA-Z]', {value: '\\W'}],
  79. ['[^_0-9A-Za-z]', {value: '\\W'}],
  80. // Non-word with digit
  81. ['[^a-zA-Z\\d_]', {value: '\\W'}],
  82. ['[^a-zA-Z_\\d]', {value: '\\W'}],
  83. ['[^a-z\\dA-Z_]', {value: '\\W'}],
  84. ['[^a-z\\d_A-Z]', {value: '\\W'}],
  85. ['[^a-z_A-Z\\d]', {value: '\\W'}],
  86. ['[^a-z_\\dA-Z]', {value: '\\W'}],
  87. ['[^A-Za-z\\d_]', {value: '\\W'}],
  88. ['[^A-Za-z_\\d]', {value: '\\W'}],
  89. ['[^A-Z\\da-z_]', {value: '\\W'}],
  90. ['[^A-Z\\d_a-z]', {value: '\\W'}],
  91. ['[^A-Z_a-z\\d]', {value: '\\W'}],
  92. ['[^A-Z_\\da-z]', {value: '\\W'}],
  93. ['[^\\da-zA-Z_]', {value: '\\W'}],
  94. ['[^\\da-z_A-Z]', {value: '\\W'}],
  95. ['[^\\dA-Za-z_]', {value: '\\W'}],
  96. ['[^\\dA-Z_a-z]', {value: '\\W'}],
  97. ['[^\\d_a-zA-Z]', {value: '\\W'}],
  98. ['[^\\d_A-Za-z]', {value: '\\W'}],
  99. ['[^_a-zA-Z\\d]', {value: '\\W'}],
  100. ['[^_a-z\\dA-Z]', {value: '\\W'}],
  101. ['[^_A-Za-z\\d]', {value: '\\W'}],
  102. ['[^_A-Z\\da-z]', {value: '\\W'}],
  103. ['[^_\\da-zA-Z]', {value: '\\W'}],
  104. ['[^_\\dA-Za-z]', {value: '\\W'}],
  105. // Word with case insensitivity
  106. ['[a-z0-9_]', {value: '\\w', flags: 'i'}],
  107. ['[a-z_0-9]', {value: '\\w', flags: 'i'}],
  108. ['[0-9a-z_]', {value: '\\w', flags: 'i'}],
  109. ['[0-9_a-z]', {value: '\\w', flags: 'i'}],
  110. ['[_a-z0-9]', {value: '\\w', flags: 'i'}],
  111. ['[_0-9a-z]', {value: '\\w', flags: 'i'}],
  112. ['[^a-z0-9_]', {value: '\\W', flags: 'i'}],
  113. // Word with case insensitivity and digit
  114. ['[a-z\\d_]', {value: '\\w', flags: 'i'}],
  115. ['[a-z_\\d]', {value: '\\w', flags: 'i'}],
  116. ['[\\da-z_]', {value: '\\w', flags: 'i'}],
  117. ['[\\d_a-z]', {value: '\\w', flags: 'i'}],
  118. ['[_a-z\\d]', {value: '\\w', flags: 'i'}],
  119. ['[_\\da-z]', {value: '\\w', flags: 'i'}],
  120. // Non-word with case insensitivity
  121. ['[^a-z0-9_]', {value: '\\W', flags: 'i'}],
  122. ['[^a-z_0-9]', {value: '\\W', flags: 'i'}],
  123. ['[^0-9a-z_]', {value: '\\W', flags: 'i'}],
  124. ['[^0-9_a-z]', {value: '\\W', flags: 'i'}],
  125. ['[^_a-z0-9]', {value: '\\W', flags: 'i'}],
  126. ['[^_0-9a-z]', {value: '\\W', flags: 'i'}],
  127. // Non-word with case insensitivity and digit
  128. ['[^a-z\\d_]', {value: '\\W', flags: 'i'}],
  129. ['[^a-z_\\d]', {value: '\\W', flags: 'i'}],
  130. ['[^\\da-z_]', {value: '\\W', flags: 'i'}],
  131. ['[^\\d_a-z]', {value: '\\W', flags: 'i'}],
  132. ['[^_a-z\\d]', {value: '\\W', flags: 'i'}],
  133. ['[^_\\da-z]', {value: '\\W', flags: 'i'}]
  134. ]);