Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions couriers/gofo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "GOFO Express",
"courier_code": "gofo",
"tracking_numbers": [
{
"name": "GOFO Express (US)",
"id": "gofo_us",
"regex": [
"\\s*G\\s*F\\s*U\\s*S\\s*(?<SerialNumber>([0-9]\\s*){14})\\s*"
],
"tracking_url": "https://www.gofoexpress.com/tracking.html?searchID=%s",
"validation": {},
"test_numbers": {
"valid": [
"GFUS01011884214464",
"GFUS01011884214272"
],
"invalid": [
"GFUS0101188421446"
]
}
Comment on lines +13 to +21
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify test numbers are correctly classified.

The test cases appear structurally correct (valid cases have 14 digits, invalid has 13), but confirm they represent real GOFO tracking numbers or representative samples.


🏁 Script executed:

#!/bin/bash
# Verify test numbers match the regex pattern

# Test valid numbers
echo "GFUS01011884214464" | grep -E '^\s*G\s*F\s*U\s*S\s*([0-9]\s*){14}\s*$' && echo "Valid 1: PASS" || echo "Valid 1: FAIL"
echo "GFUS01011884214272" | grep -E '^\s*G\s*F\s*U\s*S\s*([0-9]\s*){14}\s*$' && echo "Valid 2: PASS" || echo "Valid 2: FAIL"

# Test invalid number (should not match)
echo "GFUS0101188421446" | grep -E '^\s*G\s*F\s*U\s*S\s*([0-9]\s*){14}\s*$' && echo "Invalid: FAIL (matched when shouldn't)" || echo "Invalid: PASS (correctly rejected)"

Length of output: 100


🌐 Web query:

GOFO tracking number format structure digits

💡 Result:

Common GOFO tracking-number patterns seen in carrier and aggregator sources:

  • GF + 13 digits (example: GF5110774101040). [1][3]
  • GF + 15 characters (business responses have also listed GF followed by 15 digits in some cases). [1]
  • KD + 14 digits (reported by GOFO in responses). [1]
  • YT or WT + 16 digits (alternative last‑mile formats). [1][5]

Notes: aggregators (ParcelPanel, 17Track, TrackingMore) also recognise GOFO and auto-detect these formats. If you share a sample tracking number I can parse or validate it. [2][4]


Test numbers do not match documented GOFO tracking number formats.

Actual GOFO tracking numbers use formats like GF + 13 digits, GF + 15 characters, KD + 14 digits, or YT/WT + 16 digits. The test numbers use "GFUS" prefix with 14 digits, which does not match any documented format. Replace with representative samples from actual GOFO documentation or use a more generic prefix (e.g., "GF") with the correct digit count.

🤖 Prompt for AI Agents
In couriers/gofo.json around lines 13 to 21 the provided test tracking numbers
use a "GFUS" prefix with 14 digits which doesn't match documented GOFO formats;
replace the examples with representative formats such as "GF" followed by 13
digits, "GF" followed by 15 alphanumeric chars, "KD" followed by 14 digits, or
"YT"/"WT" followed by 16 digits (or multiple examples covering these variants)
so the valid/invalid arrays reflect actual GOFO patterns.

}
]
}