Closed anthonyettinger closed 9 years ago
I found a solution. Without being too destructive.
//overrides
if ( this.nameLower === 'c#' ) {
slug.charmap['#'] = 'sharp';
} else if ( this.nameLower === '.net' ) {
slug.charmap['.'] = 'dot';
} else if ( this.nameLower === 'c++' ) {
slug.charmap['+'] = 'plus';
}
Nice, that you found a good solution so quickly. Your example is a very specific case of replacement logic which would be better suited as a small library instead of a feature of this package, IMHO.
This is causing a duplicate key error in my database.
C#
is slugified toc
, which conflicts with slug forC
. Is there anyway to override this? Like maybe replacing#
withsharp
orpound
.