Skip to content

Commit

Permalink
Enable _.words to detect ordinals in compound words. [closes lodash#3561
Browse files Browse the repository at this point in the history
]
  • Loading branch information
jdalton committed Dec 29, 2017
1 parent b2ea6b1 commit fa73d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .internal/unicodeWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const rsOptContrUpper = `(?:${rsApos}(?:D|LL|M|RE|S|T|VE))?`
const reOptMod = `${rsModifier}?`
const rsOptVar = `[${rsVarRange}]?`
const rsOptJoin = `(?:${rsZWJ}(?:${[rsNonAstral, rsRegional, rsSurrPair].join('|')})${rsOptVar + reOptMod})*`
const rsOrdLower = '\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)'
const rsOrdUpper = '\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)'
const rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])'
const rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])'
const rsSeq = rsOptVar + reOptMod + rsOptJoin
const rsEmoji = `(?:${[rsDingbat, rsRegional, rsSurrPair].join('|')})${rsSeq}`

Expand Down

0 comments on commit fa73d46

Please sign in to comment.