Skip to content

Commit

Permalink
Some more Polish characters for capitalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Apr 26, 2019
1 parent 636a59b commit 5022906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/ang/models/taxon.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ iNatModels.Taxon.capitalize = function( s ) {
// this into React and using https://babeljs.io/docs/plugins/transform-es2015
// -unicode-regex. We could also use the command line tool there to convert
// just these patterns for use outside of React
var lowerCaseChars = "éáúóåøØêûîôâãĩũṽỹñõèùìòàçëüïöäæµfifløŒœ∑ß∂∆Ωčšžřěňȟǧǎěǐǒǔǚł";
var lowerCaseChars = "µßàáâãäåæçèéêëìîïñòóôõöøØùúûüąćčęěĩłńňŒœřśšũźżžǎǐǒǔǚǧȟΩṽỹ∂∆∑fifl";
var allCasePattern = new RegExp( "[A-z" + lowerCaseChars + lowerCaseChars.toUpperCase( ) + "]" );
var firstLetterMatch = s.match( allCasePattern );
var firstLetterIndex = firstLetterMatch ? firstLetterMatch.index : 0;
Expand Down

0 comments on commit 5022906

Please sign in to comment.