Skip to content

Commit

Permalink
Fix capturing multiline text correctly for NIP-50
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvsk committed Nov 22, 2023
1 parent 1f38ae9 commit 0c87e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/nostr/nip50.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def matches_full_text_search?(query)
end

def self.parse_nip50_query(query)
mod, text = query.scan(/\A(?:m:(\w+))?(.*)\Z/).flatten.map(&:to_s).map(&:strip)
mod, text = query.scan(/\A(?:m:(\w+))?(.*)\Z/m).flatten.map(&:to_s).map(&:strip)

case mod
when "plain"
Expand Down

0 comments on commit 0c87e8c

Please sign in to comment.