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
SAMPLE_ATTRS={regex: "/k[^\\s]*s/g",corpus_text: "I can haz kittens. Mmmm. Tasty, tasty kittens.",replace_text: "tacos"}.freeze
194
196
195
197
defvalidate_no_url(field)
196
198
val=send(field)
197
-
errors.addfield,"may not include url or link like text when shared"ifPROTOCOL_PATTERN =~ val || URL_PATTERN =~ val|| LINK_PATTERN =~ val
199
+
errors.addfield,"may not include url or link like text unless you are signed in"if(PROTOCOL_PATTERN =~ val || LINK_PATTERN =~ val) && STACKOVERFLOW_PATTERN !~ val
0 commit comments