Skip to content

Commit

Permalink
Small update on regex
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Dec 5, 2023
1 parent 41374aa commit e49e62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/message_template_parser.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module MessageTemplateParser
PLACEHOLDER_PATTERN=/({{ ?([\p{L} +]+)(\*?):([\p{L}_]+)(?:\:"([\p{L}.@\-+_\d\s]+)")? }})/
PLACEHOLDER_PATTERN=/({{ ?([\p{L} +]+)(\*?):([\p{L}_]+)(?:\:"([\p{L}.@\-+_\d\s]+)")? ?}})/

def self.parse_template_placeholders(template)
template_content = template.content
Expand Down

0 comments on commit e49e62b

Please sign in to comment.