Eslint cleanup for shared modules.

This commit is contained in:
Michał Lipiński
2017-02-18 23:31:42 +01:00
parent 27644a7bd5
commit b4e815c04b
6 changed files with 12 additions and 10 deletions

View File

@@ -21,7 +21,8 @@ const reOptMod = `${ rsModifier }?`
const rsOptVar = `[${ rsVarRange }]?`
const rsOptJoin = `(?:${ rsZWJ }(?:${ [rsNonAstral, rsRegional, rsSurrPair].join('|') })${ rsOptVar + reOptMod })*`
const rsSeq = rsOptVar + reOptMod + rsOptJoin
const rsSymbol = `(?:${ [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') })`
const rsNonAstralCombo = `${ rsNonAstral }${ rsCombo }?`
const rsSymbol = `(?:${ [rsNonAstralCombo, rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') })`
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
const reUnicode = RegExp(`${ rsFitz }(?=${ rsFitz })|${ rsSymbol + rsSeq }`, 'g')