File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Deprecations:
29
29
API:
30
30
31
31
- enh(api) add ` unregisterLanguage ` method (#3009 ) [ Antoine du Hamel] [ ]
32
+ - enh: Make alias registration case insensitive (#3026 ) [ David Ostrovsky] [ ]
32
33
33
34
[ Stef Levesque ] : https://github.com/stef-levesque
34
35
[ Josh Goebel ] : https://github.com/joshgoebel
38
39
[ Vyron Vasileiadis ] : https://github.com/fedonman
39
40
[ Antoine du Hamel ] : https://github.com/aduh95
40
41
[ Vaibhav Chanana ] : https://github.com/il3ven
42
+ [ David Ostrovsky ] : https://github.com/davido
41
43
42
44
## Version 10.6.0
43
45
Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ const HLJS = function(hljs) {
875
875
if ( typeof aliasList === 'string' ) {
876
876
aliasList = [ aliasList ] ;
877
877
}
878
- aliasList . forEach ( alias => { aliases [ alias ] = languageName ; } ) ;
878
+ aliasList . forEach ( alias => { aliases [ alias . toLowerCase ( ) ] = languageName ; } ) ;
879
879
}
880
880
881
881
/**
You can’t perform that action at this time.
0 commit comments