this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add slash to allowed chars to be unquoted

+9
+5
src/houdinis_publicist.gleam
··· 38 38 // case expression that checks if the first bit of the string is in a 39 39 // alphanumeric character range of ascii 40 40 case bin { 41 + // digits 41 42 <<c, rest:bits>> if c >= 48 && c <= 57 -> 42 43 do_escape_attribute(rest, original, length + 1) 44 + // A-Z 43 45 <<c, rest:bits>> if c >= 65 && c <= 90 -> 44 46 do_escape_attribute(rest, original, length + 1) 47 + // a-z 45 48 <<c, rest:bits>> if c >= 97 && c <= 122 -> 46 49 do_escape_attribute(rest, original, length + 1) 50 + // couple chars 47 51 <<"-", rest:bits>> 48 52 | <<"_", rest:bits>> 49 53 | <<".", rest:bits>> 54 + | <<"/", rest:bits>> 50 55 | <<":", rest:bits>> -> do_escape_attribute(rest, original, length + 1) 51 56 52 57 // didn't ever find something that wasn't whitelisted, can go ahead and
+4
test/houdinis_publicist_test.gleam
··· 10 10 let tests = [ 11 11 #("a", "a"), 12 12 #("abcd", "abcd"), 13 + #( 14 + "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.:/", 15 + "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.:/", 16 + ), 13 17 #("ab cd", "\"ab cd\""), 14 18 #("a\"", "\"a&quot;\""), 15 19 ]