Skip to content

Commit

Permalink
fix: selectOrdinal pseudolocalize insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Moreno committed Mar 19, 2021
1 parent fe67e0f commit 16acafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/api/pseudoLocalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const HTMLRegex = /<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\
* SelectOrdinal https://regex101.com/r/T7hSLU/2
* Select https://regex101.com/r/9JnqB9/1
*/
const MacroRegex = /({\w*,\s*(plural|selectordinal|select),(.|\n)*?{)|(}\s*\w*\s*{)/g
const MacroRegex = /({\w*,\s*(plural|selectordinal|select),(.|\n)*?{)|(}\s*\w*\s*{)/gi

/**
* Regex should match js-lingui variables
Expand Down

1 comment on commit 16acafe

@vercel
Copy link

@vercel vercel bot commented on 16acafe Mar 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.