Skip to content

Commit

Permalink
leaflet: display correct number of characters in statusbar
Browse files Browse the repository at this point in the history
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I93dc5c54abb3a43cdffe1b12ca3e22247ed22f67
  • Loading branch information
Rash419 authored and tml1024 committed Jan 18, 2021
1 parent 8b0af82 commit bee45eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loleaflet/src/control/Control.StatusBar.js
Expand Up @@ -57,7 +57,7 @@ L.Control.StatusBar = L.Control.extend({
toLocalePattern: function(pattern, regex, text, sub1, sub2) {
var matches = new RegExp(regex, 'g').exec(text);
if (matches) {
text = pattern.toLocaleString().replace(sub1, parseInt(matches[1].replace(',','')).toLocaleString(String.locale)).replace(sub2, parseInt(matches[2].replace(',','')).toLocaleString(String.locale));
text = pattern.toLocaleString().replace(sub1, parseInt(matches[1].replace(/,/g,'')).toLocaleString(String.locale)).replace(sub2, parseInt(matches[2].replace(/,/g,'')).toLocaleString(String.locale));
}
return text;
},
Expand Down

0 comments on commit bee45eb

Please sign in to comment.