Merge branch 'ep/operators-preset-servers' into ep/operators-preset-servers-android

This commit is contained in:
Evgeny Poberezkin 2024-11-14 14:24:50 +00:00
commit e1bdfb724f
No known key found for this signature in database
GPG key ID: 494BDDD9A28B577D
2 changed files with 3 additions and 3 deletions

View file

@ -52,10 +52,10 @@ import Simplex.Messaging.Transport.Client (TransportHost (..))
import Simplex.Messaging.Util (atomicModifyIORef'_, safeDecodeUtf8) import Simplex.Messaging.Util (atomicModifyIORef'_, safeDecodeUtf8)
usageConditionsCommit :: Text usageConditionsCommit :: Text
usageConditionsCommit = "165143a1112308c035ac00ed669b96b60599aa1c" usageConditionsCommit = "a5061f3147165a05979d6ace33960aced2d6ac03"
previousConditionsCommit :: Text previousConditionsCommit :: Text
previousConditionsCommit = "edf99fcd1d7d38d2501d19608b94c084cf00f2ac" previousConditionsCommit = "11a44dc1fd461a93079f897048b46998db55da5c"
usageConditionsText :: Text usageConditionsText :: Text
usageConditionsText = usageConditionsText =

View file

@ -9,7 +9,7 @@ import qualified Data.Text as T
stripFrontMatter :: Text -> Text stripFrontMatter :: Text -> Text
stripFrontMatter = stripFrontMatter =
T.unlines T.unlines
. dropWhile ("# " `T.isPrefixOf`) -- strip title -- . dropWhile ("# " `T.isPrefixOf`) -- strip title
. dropWhile (T.all isSpace) . dropWhile (T.all isSpace)
. dropWhile fm . dropWhile fm
. (\ls -> let ls' = dropWhile (not . fm) ls in if null ls' then ls else ls') . (\ls -> let ls' = dropWhile (not . fm) ls in if null ls' then ls else ls')