File: misc-match.t

package info (click to toggle)
pick 2.0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 648 kB
  • sloc: ansic: 1,162; sh: 64; makefile: 60
file content (30 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
description: matching is case insensitive
keys: a \n # ENTER
stdin:
A
stdout:
A

description: it favors the shortest match
keys: aa/aa \n # ENTER
stdin:
aa/åå/aa
aa/åå/aa/aa
stdout:
aa/åå/aa/aa

description: do not match inside a CSI escape sequence
keys: 32 \n
stdin:
\033[32m33\033[m
3aaa2
stdout:
3aaa2

description: do not match inside a OSC escape sequence
keys: example \n # ENTER
stdin:
\033]8;;example.com\aOSC Hyperlink\033]8;;\a
favored match since the query is not inside the escape sequence example.com
stdout:
favored match since the query is not inside the escape sequence example.com