|
154 | 154 | ]
|
155 | 155 | },
|
156 | 156 | {
|
157 |
| - "description": "ECMA 262 \\w matches everything but ascii letters", |
| 157 | + "description": "ECMA 262 \\W matches everything but ascii letters", |
158 | 158 | "schema": {
|
159 | 159 | "type": "string",
|
160 | 160 | "pattern": "^\\W$"
|
|
173 | 173 | ]
|
174 | 174 | },
|
175 | 175 | {
|
176 |
| - "description": "ECMA 262 \\s matches ascii whitespace only", |
| 176 | + "description": "ECMA 262 \\s matches whitespace", |
177 | 177 | "schema": {
|
178 | 178 | "type": "string",
|
179 | 179 | "pattern": "^\\s$"
|
|
185 | 185 | "valid": true
|
186 | 186 | },
|
187 | 187 | {
|
188 |
| - "description": "latin-1 non-breaking-space does not match (unlike e.g. Python)", |
| 188 | + "description": "Character tabulation matches", |
| 189 | + "data": "\t", |
| 190 | + "valid": true |
| 191 | + }, |
| 192 | + { |
| 193 | + "description": "Line tabulation matches", |
| 194 | + "data": "\u000b", |
| 195 | + "valid": true |
| 196 | + }, |
| 197 | + { |
| 198 | + "description": "Form feed matches", |
| 199 | + "data": "\u000c", |
| 200 | + "valid": true |
| 201 | + }, |
| 202 | + { |
| 203 | + "description": "latin-1 non-breaking-space matches", |
189 | 204 | "data": "\u00a0",
|
| 205 | + "valid": true |
| 206 | + }, |
| 207 | + { |
| 208 | + "description": "zero-width whitespace matches", |
| 209 | + "data": "\ufeff", |
| 210 | + "valid": true |
| 211 | + }, |
| 212 | + { |
| 213 | + "description": "line feed matches (line terminator)", |
| 214 | + "data": "\u000a", |
| 215 | + "valid": true |
| 216 | + }, |
| 217 | + { |
| 218 | + "description": "paragraph separator matches (line terminator)", |
| 219 | + "data": "\u2029", |
| 220 | + "valid": true |
| 221 | + }, |
| 222 | + { |
| 223 | + "description": "EM SPACE matches (Space_Separator)", |
| 224 | + "data": "\u2003", |
| 225 | + "valid": true |
| 226 | + }, |
| 227 | + { |
| 228 | + "description": "Non-whitespace control does not match", |
| 229 | + "data": "\u0001", |
| 230 | + "valid": false |
| 231 | + }, |
| 232 | + { |
| 233 | + "description": "Non-whitespace does not match", |
| 234 | + "data": "\u2013", |
190 | 235 | "valid": false
|
191 | 236 | }
|
192 | 237 | ]
|
193 | 238 | },
|
194 | 239 | {
|
195 |
| - "description": "ECMA 262 \\S matches everything but ascii whitespace", |
| 240 | + "description": "ECMA 262 \\S matches everything but whitespace", |
196 | 241 | "schema": {
|
197 | 242 | "type": "string",
|
198 | 243 | "pattern": "^\\S$"
|
|
204 | 249 | "valid": false
|
205 | 250 | },
|
206 | 251 | {
|
207 |
| - "description": "latin-1 non-breaking-space matches (unlike e.g. Python)", |
| 252 | + "description": "Character tabulation does not match", |
| 253 | + "data": "\t", |
| 254 | + "valid": false |
| 255 | + }, |
| 256 | + { |
| 257 | + "description": "Line tabulation does not match", |
| 258 | + "data": "\u000b", |
| 259 | + "valid": false |
| 260 | + }, |
| 261 | + { |
| 262 | + "description": "Form feed does not match", |
| 263 | + "data": "\u000c", |
| 264 | + "valid": false |
| 265 | + }, |
| 266 | + { |
| 267 | + "description": "latin-1 non-breaking-space does not match", |
208 | 268 | "data": "\u00a0",
|
| 269 | + "valid": false |
| 270 | + }, |
| 271 | + { |
| 272 | + "description": "zero-width whitespace does not match", |
| 273 | + "data": "\ufeff", |
| 274 | + "valid": false |
| 275 | + }, |
| 276 | + { |
| 277 | + "description": "line feed does not match (line terminator)", |
| 278 | + "data": "\u000a", |
| 279 | + "valid": false |
| 280 | + }, |
| 281 | + { |
| 282 | + "description": "paragraph separator does not match (line terminator)", |
| 283 | + "data": "\u2029", |
| 284 | + "valid": false |
| 285 | + }, |
| 286 | + { |
| 287 | + "description": "EM SPACE does not match (Space_Separator)", |
| 288 | + "data": "\u2003", |
| 289 | + "valid": false |
| 290 | + }, |
| 291 | + { |
| 292 | + "description": "Non-whitespace control matches", |
| 293 | + "data": "\u0001", |
| 294 | + "valid": true |
| 295 | + }, |
| 296 | + { |
| 297 | + "description": "Non-whitespace matches", |
| 298 | + "data": "\u2013", |
209 | 299 | "valid": true
|
210 | 300 | }
|
211 | 301 | ]
|
|
0 commit comments