permit more characters in links

This commit is contained in:
byte[] 2019-12-08 09:43:47 -05:00
parent b51249b4ce
commit 537b2e7e66
4 changed files with 6 additions and 5 deletions

View file

@ -3,7 +3,7 @@ h1 Comments
= form_for :comments, Routes.comment_path(@conn, :index), [method: "get", class: "hform", enforce_utf8: false], fn f ->
.field
= text_input f, :cq, name: :cq, value: @conn.params["cq"], class: "input hform__text", placeholder: "Search comments", autocapitalize: "none"
= submit "Search", class: "hform__button button", data: [disable_with: false]
= submit "Search", class: "hform__button button"
.fieldlabel
' For more information, see the

View file

@ -3,7 +3,7 @@ h1 Posts
= form_for :posts, Routes.post_path(@conn, :index), [method: "get", class: "hform", enforce_utf8: false], fn f ->
.field
= text_input f, :pq, name: :pq, value: @conn.params["pq"], class: "input hform__text", placeholder: "Search posts", autocapitalize: "none"
= submit "Search", class: "hform__button button", data: [disable_with: false]
= submit "Search", class: "hform__button button"
.fieldlabel
' For more information, see the

View file

@ -128,9 +128,9 @@ defmodule Textile.Lexer do
string("@"),
string("^"),
string("~"),
string("."),
string("!"),
string(","),
string(".") |> concat(choice([space(), eos()])),
string("!") |> concat(choice([space(), eos()])),
string(",") |> concat(choice([space(), eos()])),
string("_") |> concat(choice([space(), eos()])),
string("?") |> concat(choice([space(), eos()])),
string(";") |> concat(choice([space(), eos()])),

View file

@ -20,6 +20,7 @@ defmodule Textile.UrlLexer do
scheme_and_domain =
choice([
string("#"),
string("/"),
string("data:image/"),
string("https://") |> concat(domain),