mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
8 lines
191 B
JavaScript
8 lines
191 B
JavaScript
'use strict';
|
|
const stringWidth = require('string-width');
|
|
|
|
module.exports = input => {
|
|
let max = 0;
|
|
for (const s of input.split('\n')) max = Math.max(max, stringWidth(s));
|
|
return max;
|
|
};
|