Parsing B__E_M identifier.
You can learn about identifier structure from tests.
Use bem-naming
Parses string
as BEM identifier and returns object, that contains:
block
mod
modVal
elem
elemMod
elemVal
Type: Boolean
Default: false
If true, then elemMod
will be stored in mod
, modVal
and elemVal
will be stored in val
.
MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)