pid / speakingurl

Generate a slug – transliteration with a lot of options
http://pid.github.io/speakingurl/
BSD 3-Clause "New" or "Revised" License
1.12k stars 84 forks source link

Custom map works different #47

Closed boldkhuu closed 9 years ago

boldkhuu commented 9 years ago

It seems default mapping replaces my custom maps.

getSlug('буу', { custom: { 'б': 'б', 'у': 'у' } });
// result: buu
// desired result: буу

I don't want to transliterate cyrillic letters.

pid commented 9 years ago

Thanks for contribution, please check if it works for you

Released v1.0.0

pid commented 9 years ago

with v1.1.0 you can add the chars as array

getSlug('буу', {
    custom: ['б', 'у']
  });
boldkhuu commented 9 years ago

Cool. Thank you for your update.