vendor/assets/js/foundation.dropdown.js.es6 in foundation-rails-6.2.1.0 vs vendor/assets/js/foundation.dropdown.js.es6 in foundation-rails-6.2.3.0

- old
+ new

@@ -69,10 +69,10 @@ * @returns {String} position - string value of a position class. */ getPositionClass() { var verticalPosition = this.$element[0].className.match(/(top|left|right|bottom)/g); verticalPosition = verticalPosition ? verticalPosition[0] : ''; - var horizontalPosition = /float-(.+)\s/.exec(this.$anchor[0].className); + var horizontalPosition = /float-(\S+)\s/.exec(this.$anchor[0].className); horizontalPosition = horizontalPosition ? horizontalPosition[1] : ''; var position = horizontalPosition ? horizontalPosition + ' ' + verticalPosition : verticalPosition; return position; }