fython / PackageTracker

Track your package simply on Android.
GNU General Public License v3.0
339 stars 43 forks source link

[Enhancement] Use Regex to Beautify Statuses. #30

Open xfoxfu opened 7 years ago

xfoxfu commented 7 years ago

In previous version, the statuses are beautified, but to fix #26, the feature is removed.

I suggest use Regex adapted for different companies to match statuses and beautify them and provide a option for users to modify the pre-defined regexs.

For example, the user may write 【(.*)】【(.*)】(.*) to match package statuses from "shunfeng" and automatically fills displayed statuses with $3 and location with $1.

Moreover, there can be multiple regexs for one company to fit different statuses with a priority.