Skip to content

Commit 9fac3d5

Browse files
committed
exclude \n from word_chars and non_separator_chars
1 parent 38f2e1e commit 9fac3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/algora/shared/parser.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ defmodule Algora.Parser do
66
@moduledoc false
77
def whitespace, do: ascii_string([?\s, ?\t], min: 1)
88
def digits, do: ascii_string([?0..?9], min: 1)
9-
def word_chars, do: ascii_string([not: ?\s, not: ?\t], min: 1)
10-
def non_separator_chars, do: ascii_string([not: ?#, not: ?/, not: ?\s, not: ?\t], min: 1)
9+
def word_chars, do: ascii_string([not: ?\s, not: ?\t, not: ?\n], min: 1)
10+
def non_separator_chars, do: ascii_string([not: ?#, not: ?/, not: ?\s, not: ?\t, not: ?\n], min: 1)
1111
def integer, do: reduce(digits(), {__MODULE__, :to_integer, []})
1212

1313
def amount do

0 commit comments

Comments
 (0)