Sha256: 522c9bc013290588182f8533b41c9c49085c9875c9457651d32fe414b6363e87

Contents?: true

Size: 287 Bytes

Versions: 26

Compression:

Stored size: 287 Bytes

Contents

#!/usr/bin/env ruby

require 'isna'

"\\1\e[0;0;34m<--- space\e[0m"
STDIN.each_line do |line|
  spaces = line.gsub(/([ ]+$)/, "[\\1]".to_ansi.negative.underline.red.blink.to_s + '<--- space'.to_ansi.red.to_s)
  tabs = spaces.gsub(/(\t+$)/, "\\1\e[0;0;41m<--- tab\e[0m")
  print tabs
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.27 bin/ix-show-trailing-spaces
ix-cli-0.0.26 bin/ix-show-trailing-spaces
ix-cli-0.0.25 bin/ix-show-trailing-spaces
ix-cli-0.0.24 bin/ix-show-trailing-spaces
ix-cli-0.0.23 bin/ix-show-trailing-spaces
ix-cli-0.0.22 bin/ix-show-trailing-spaces
ix-cli-0.0.21 bin/ix-show-trailing-spaces
ix-cli-0.0.20 bin/ix-show-trailing-spaces
ix-cli-0.0.19 bin/ix-show-trailing-spaces
ix-cli-0.0.18 bin/ix-show-trailing-spaces
ix-cli-0.0.17 bin/ix-show-trailing-spaces
ix-cli-0.0.16 bin/ix-show-trailing-spaces
ix-cli-0.0.15 bin/ix-show-trailing-spaces
ix-cli-0.0.14 bin/ix-show-trailing-spaces
ix-cli-0.0.13 bin/ix-show-trailing-spaces
ix-cli-0.0.12 bin/ix-show-trailing-spaces
ix-cli-0.0.11 bin/ix-show-trailing-spaces
ix-cli-0.0.10 bin/ix-show-trailing-spaces
ix-cli-0.0.9 bin/ix-show-trailing-spaces
ix-cli-0.0.7 bin/ix-show-trailing-spaces