TrianguloY / URLCheck

Android app by TrianguloY: URLCheck
Other
969 stars 57 forks source link

total URL conversion #389

Closed ildar closed 1 month ago

ildar commented 1 month ago

Describe a related problem (optional)

No response

Describe your suggested feature

I'd like to see URLChecker converting (roughly) https://gitlab.something.com to labcoat://gitlab.something.com. This is what e.g. https://gitlab.com/nomadlabs/deeplinks/ awkwardly does.

Describe alternatives you've considered for your suggested feature

I guess if Regex worked, that would kinda solve the issue.

Other details

No response

Acknowledgements

TrianguloY commented 1 month ago

That regex issue you link is for allowing changing the letters case in the pattern checker module.

But your request doesn't seems to require that.

A configuration like this should work:

  "Test": {
    "regex": "^https?(:\/\/(git\\.socketmobile\\.com|salsa\\.debian\\.org|gitlab\\.freedesktop\\.org|gitlab\\.gnome\\.org|git\\.gnu\\.io)/.*$)",
    "replacement": "labcoat$1"
  }

(You could also use a more generic "^https?(://gitlab\\.[^.]*\\.com/.*$)" if you prefer)

ildar commented 1 month ago

yes, found that Template checker module after filing the issue. Will try it. Sorry for the noise.

TrianguloY commented 1 month ago

Don't worry. I'll close this issue, since the feature you request is available. But feel free to ask for more help here if needed.