mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
permit more characters in links
This commit is contained in:
parent
b51249b4ce
commit
537b2e7e66
4 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()])),
|
||||
|
|
|
@ -20,6 +20,7 @@ defmodule Textile.UrlLexer do
|
|||
|
||||
scheme_and_domain =
|
||||
choice([
|
||||
string("#"),
|
||||
string("/"),
|
||||
string("data:image/"),
|
||||
string("https://") |> concat(domain),
|
||||
|
|
Loading…
Reference in a new issue