Fix coding standards

This commit is contained in:
Alexander Meindl 2019-10-03 18:17:55 +02:00
parent f37892c189
commit 6043b3c52b
2 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,7 @@ module AdditionalsQueriesHelper
value_str = value.to_s
# 1.1: margin
width = (value_str.length + value_str.chars.reject(&:ascii_only?).length) * 1.1 + 1
width = (value_str.length + value_str.chars.count { |e| !e.ascii_only? }) * 1.1 + 1
# 30: max width
width > 30 ? 30 : width
end

View File

@ -8,6 +8,7 @@ function openExternalLink() {
}
/* exported setClipboardJS */
/* global ClipboardJS */
function setClipboardJS(element){
var clipboard = new ClipboardJS(element);
clipboard.on('success', function(e) {