|
|
@ -104,6 +104,7 @@ var reTests = []struct {
|
|
|
|
{`\d{3,4}`, "1209", []matchIndex{{0, 4}}},
|
|
|
|
{`\d{3,4}`, "1209", []matchIndex{{0, 4}}},
|
|
|
|
{`\d{3,4}`, "109", []matchIndex{{0, 3}}},
|
|
|
|
{`\d{3,4}`, "109", []matchIndex{{0, 3}}},
|
|
|
|
{`\d{3,4}`, "5", []matchIndex{}},
|
|
|
|
{`\d{3,4}`, "5", []matchIndex{}},
|
|
|
|
|
|
|
|
{`\d{3,4}`, "123135", []matchIndex{{0, 4}}},
|
|
|
|
{`\d{3,4}`, "89a-0", []matchIndex{}},
|
|
|
|
{`\d{3,4}`, "89a-0", []matchIndex{}},
|
|
|
|
{`\d{3,4}`, "ababab555", []matchIndex{{6, 9}}},
|
|
|
|
{`\d{3,4}`, "ababab555", []matchIndex{{6, 9}}},
|
|
|
|
{`\bpaint\b`, "paints", []matchIndex{}},
|
|
|
|
{`\bpaint\b`, "paints", []matchIndex{}},
|
|
|
|