docbrown/app
Bolarinwa Balogun e04d84bc4c Improve Gist Link Regex (#2592)
* Improve Gist Link Regex

While working with the gist liquid tag, I noticed that valid gist links
were resulting in errors. After looking at `gist_tag.rb`, I noticed
that for a link to be considered valid the gist-id had to be exactly 32
characters which is not always true.

I changed the regex so links with a gist-id of at least one character and
at most 32 characters is considered valid. I decided to continue with
the 32 characters that had previously been used as the upper bound. I
also made a change so links with a github username that starts or ends
with hypens or contains consecutive hypens are considered invalid. The
aforementioned change was based on the validation message from the
create new GitHub account form.

* Change gist_link to gist_links in spec file for Gist tag
2019-04-29 12:24:52 -04:00
..
assets Adjust cache settings and some styling (#2588) 2019-04-27 10:36:37 -04:00
black_box BlackBox specs #2524 (#2542) 2019-04-25 10:19:11 -04:00
controllers Add credit form to internal/users (#2581) 2019-04-26 12:48:00 -04:00
dashboards Add Twitch to Profile Links (#2557) 2019-04-25 16:14:28 -04:00
decorators Fix human language detection (#2338) 2019-04-08 15:47:29 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
facades/dashboard Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Classified Listings (#2545) 2019-04-24 16:17:01 -04:00
javascript Fix some listing/credit bugs (#2584) 2019-04-26 19:01:35 -04:00
jobs Move send new badge achievement notification to ActiveJob (#2474) 2019-04-29 10:51:08 -04:00
labor Add proper filtering for inappropriate tags in listings (#2611) 2019-04-29 09:21:42 -04:00
lib add phpc.social to mastodon list (#2352) 2019-04-10 10:58:05 -04:00
liquid_tags Improve Gist Link Regex (#2592) 2019-04-29 12:24:52 -04:00
mailers Add mailers specs for tracking (#2523) 2019-04-23 12:38:11 -04:00
models Move send new badge achievement notification to ActiveJob (#2474) 2019-04-29 10:51:08 -04:00
observers Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
policies Add Twitch to Profile Links (#2557) 2019-04-25 16:14:28 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
services Move send new badge achievement notification to ActiveJob (#2474) 2019-04-29 10:51:08 -04:00
uploaders Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
views Add "ago" to article's timestamp (#2613) 2019-04-29 09:58:29 -04:00