Commit 81d3c2b
committed
Improve PowerShell escaping fixtures, refine regexes
Expand test fixtures for PowerShell escaping based on mutation testing
results. This mostly identified gaps in the testing where the use of the
"g" flag wasn't covered by tests due to a lack of repeated characters to
escape in a string.
Additionally, based on mutation testing too, update some of the regular
expressions. Expressions anchored to the start or end of the string
don't need to have the "g" flag and the `backslashSuffix` regex can't
possibly match the start of the string because it requires at least a
non-whitespace character at the start and a whitespace character after
that (because of the guard in which this expression is used).1 parent 8ba4d12 commit 81d3c2b
2 files changed
+58
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3074 | 3074 | | |
3075 | 3075 | | |
3076 | 3076 | | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
3077 | 3081 | | |
3078 | 3082 | | |
3079 | 3083 | | |
| |||
3110 | 3114 | | |
3111 | 3115 | | |
3112 | 3116 | | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
3113 | 3121 | | |
3114 | 3122 | | |
3115 | 3123 | | |
| |||
3218 | 3226 | | |
3219 | 3227 | | |
3220 | 3228 | | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
3221 | 3233 | | |
3222 | 3234 | | |
3223 | 3235 | | |
| |||
3236 | 3248 | | |
3237 | 3249 | | |
3238 | 3250 | | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
3239 | 3255 | | |
3240 | 3256 | | |
3241 | 3257 | | |
| |||
3274 | 3290 | | |
3275 | 3291 | | |
3276 | 3292 | | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
3277 | 3301 | | |
3278 | 3302 | | |
3279 | 3303 | | |
| |||
3310 | 3334 | | |
3311 | 3335 | | |
3312 | 3336 | | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
3313 | 3341 | | |
3314 | 3342 | | |
3315 | 3343 | | |
| |||
3466 | 3494 | | |
3467 | 3495 | | |
3468 | 3496 | | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
3469 | 3509 | | |
3470 | 3510 | | |
3471 | 3511 | | |
| |||
3568 | 3608 | | |
3569 | 3609 | | |
3570 | 3610 | | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
3571 | 3619 | | |
3572 | 3620 | | |
3573 | 3621 | | |
| |||
3650 | 3698 | | |
3651 | 3699 | | |
3652 | 3700 | | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
3653 | 3705 | | |
3654 | 3706 | | |
3655 | 3707 | | |
| |||
3748 | 3800 | | |
3749 | 3801 | | |
3750 | 3802 | | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
3751 | 3807 | | |
3752 | 3808 | | |
3753 | 3809 | | |
| |||
0 commit comments