Skip to content

Commit

Permalink
fix: adjust language code regex
Browse files Browse the repository at this point in the history
  • Loading branch information
d1snin committed Aug 29, 2023
1 parent 319ec2b commit 8f3e04a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ public object Regex {
public val TemplateEscape: Regex = Regex("\\\\(?=\\\$\\{([a-z0-9]{1,20})([-.][a-z0-9]{0,20}){0,10}\\})")
public val TextLocation: Regex = Regex("(?<!\\\\)(?<=\\\$\\{)([a-z0-9]{1,20})([-.][a-z0-9]{0,20}){0,10}(?=\\})")
public val UnwrappedTextLocation: Regex = Regex("([a-z0-9]{1,20})([-.][a-z0-9]{0,20}){0,10}")
public val LanguageCode: Regex = Regex("[a-z]{2,4}")
public val LanguageCode: Regex = Regex("[a-z]{2}")
}

0 comments on commit 8f3e04a

Please sign in to comment.