diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-02-04 13:44:38 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-02-04 13:44:38 -0500 |
| commit | 50edc4097a648dd2864ed665343d8de606a8f4a2 (patch) | |
| tree | f1f61bd84907f79a402c59dce4f35e8a0ddebf68 /stdlib | |
| parent | 0d8d109eaf56aaea4b8826c344056ee4dc801709 (diff) | |
Add {word} as an alias for {id}
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/patterns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/patterns.c b/stdlib/patterns.c index bee84760..6a9b1a50 100644 --- a/stdlib/patterns.c +++ b/stdlib/patterns.c @@ -654,6 +654,11 @@ static pat_t parse_next_pat(TextIter_t *state, int64_t *index) return PAT(PAT_FUNCTION, .fn=match_url); } break; + case 'w': + if (strcasecmp(prop_name, "word") == 0) { + return PAT(PAT_FUNCTION, .fn=match_id); + } + break; default: break; } |
