Commit 3b36103
fix(migrate-ts): make CHECK-expr cast-strip quote-aware (preserve :: in regex patterns)
The cast-strip introduced for the IN/ANY fold was quote-unaware, so a regex
pattern containing '::' (e.g. 'a::foo') normalized to 'a' — making two distinct
regex CHECKs compare equal and a pattern change silently missed. Restrict the
strip to a cast that follows a CLOSING quote (PG's 'open'::text form) via a
lookbehind; a '::' inside a quoted pattern is preserved.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1314f0a commit 3b36103
2 files changed
Lines changed: 14 additions & 1 deletion
File tree
- server/typescript/packages/migrate-ts
- src
- test/check-evolution
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
0 commit comments