(value, fill, width)
| 16374 | requoteRe = /[\\^$*+?|[\]().{}]/g; |
| 16375 | |
| 16376 | function pad(value, fill, width) { |
| 16377 | var sign = value < 0 ? "-" : "", |
| 16378 | string = (sign ? -value : value) + "", |
| 16379 | length = string.length; |
| 16380 | return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); |
| 16381 | } |
| 16382 | |
| 16383 | function requote(s) { |
| 16384 | return s.replace(requoteRe, "\\$&"); |
no test coverage detected