You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.
It works well but Hain directly displays the JSON schema error which is kinda ugly when using a pattern :
Does not match regular expression "(?(?:(http|https|ftp)://)?(?:((?:[^\W\s]|.|-|[:]{1})+)@{1})?((?:www.)?(?:[^\W\s]|.|-)+[.][^\W\s]{2,4}|localhost(?=/)|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})(?::(\d_))?([/]?[^\s\?][/]{1})(?:/?([^\s\n\?\[\]\{\}\#](?:(?=.)){1}|[^\s\n\?\[\]\{\}\.\#])?([.]{1}[^\s\?\#])?)?(?:?{1}([^\s\n\#\[\]]))?([#][^\s\n]_)?)?"
Perhaps Hain could expose a way to customize the error message, for example by extending the JSON schema declaration with a "messages" field.
I set up this regex validation for URL
https://github.com/mistic100/hain-plugin-rss/blob/master/preferences.json#L21
It works well but Hain directly displays the JSON schema error which is kinda ugly when using a pattern :
Perhaps Hain could expose a way to customize the error message, for example by extending the JSON schema declaration with a "messages" field.
Similar question on other projects using JSON schema :
geraintluff/tv4#115 (comment)
The text was updated successfully, but these errors were encountered: