Files
beads/cmd/bd
Zachary Rosen 408244ed73 fix: isHashID matches for hyphenated application names
Fixes `isHashID` checks for hyphenated application names

When a user calls bd init inside an application that has a "-" for
example my-first-application without any options than ids will follow a
pattern of my-first-application-{ID}. When using SplitN on the "-"
separator it would result in the split parts returning as [my,
first-application-{ID}] which is incorrectly pulling out the {ID}
resulting in the `isHashID` returning false when it could be a hash id.

Instead of using SplitN, this changes to find the last index of the
separator resulting in the suffix becoming the actual {ID}.
2025-11-20 19:01:30 -05:00
..
2025-11-17 10:12:46 -07:00
2025-10-27 20:08:50 -07:00
2025-11-17 10:12:46 -07:00
2025-11-20 12:34:30 -05:00
2025-11-09 14:53:59 -08:00
2025-11-17 10:12:46 -07:00
2025-11-17 10:06:35 -07:00
2025-11-09 14:13:48 -08:00
2025-11-17 10:12:46 -07:00
2025-11-15 12:46:13 -08:00
2025-11-05 13:56:12 -08:00
2025-11-09 14:53:59 -08:00
2025-11-09 14:53:59 -08:00
2025-11-17 10:12:46 -07:00
2025-11-05 13:56:12 -08:00
2025-10-27 20:08:50 -07:00
2025-10-31 22:39:53 -07:00
2025-11-20 12:34:30 -05:00
2025-11-02 21:25:40 -08:00
2025-11-17 10:12:46 -07:00
2025-11-02 17:09:39 -08:00
2025-11-16 18:10:46 -07:00