Sha256: e4ea6819a63e6a2ef58634d0c4332127fede5cb3efde01def153e2612efb8c3c

Contents?: true

Size: 193 Bytes

Versions: 26

Compression:

Stored size: 193 Bytes

Contents

#!/usr/bin/env ruby

COMMENT_REGEX = /(\s+#)(.*)/

STDIN.each_line do |line|
  if line =~ COMMENT_REGEX
    line.gsub!(COMMENT_REGEX) do |match|
      "# XX > \1"
    end
  end
  puts line
end

Version data entries

26 entries across 26 versions & 1 rubygems

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