mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
king: textAsTa -> textAsT
This commit is contained in:
parent
5f1418973d
commit
f9a5666074
@ -116,7 +116,7 @@ kingSubsite who scry stat func = do
|
||||
=> Text
|
||||
-> RIO e (Maybe Bool)
|
||||
scryAuth cookie =
|
||||
scryNow scry "ex" "" ["authenticated", "cookie", textAsTa cookie]
|
||||
scryNow scry "ex" "" ["authenticated", "cookie", textAsT cookie]
|
||||
|
||||
fourOhFourSubsite :: Ship -> KingSubsite
|
||||
fourOhFourSubsite who = KS $ \req respond ->
|
||||
|
@ -13,7 +13,7 @@ module Urbit.Noun.Conversions
|
||||
, Path(..), EvilPath(..), Ship(..)
|
||||
, Lenient(..), pathToFilePath, filePathToPath
|
||||
, showUD, tshowUD
|
||||
, textAsTa
|
||||
, textAsT
|
||||
) where
|
||||
|
||||
import ClassyPrelude hiding (hash)
|
||||
@ -556,8 +556,8 @@ instance FromNoun Knot where
|
||||
else fail ("Non-ASCII chars in knot: " <> unpack txt)
|
||||
|
||||
-- equivalent of (cury scot %t)
|
||||
textAsTa :: Text -> Text
|
||||
textAsTa = ("~~" <>) . concatMap \case
|
||||
textAsT :: Text -> Text
|
||||
textAsT = ("~~" <>) . concatMap \case
|
||||
' ' -> "."
|
||||
'.' -> "~."
|
||||
'~' -> "~~"
|
||||
|
Loading…
Reference in New Issue
Block a user