Sha256: b430d97832f36ad1d8907d38023b6f20aee5408977394b91d82c73db95b4b94c
Contents?: true
Size: 420 Bytes
Versions: 4
Compression:
Stored size: 420 Bytes
Contents
desc 'Update codepoint data for predefined sets, based on Onigmo' task :sync_predefined_sets do %w[assigned emoji whitespace].each do |prop| require 'regexp_property_values' ranges = RegexpPropertyValues[prop].matched_ranges str = ranges.map { |r| "#{r.min.to_s(16)},#{r.max.to_s(16)}\n" }.join.upcase File.write("#{__dir__}/../lib/character_set/predefined_sets/#{prop}.cps", str, mode: 'w') end end
Version data entries
4 entries across 4 versions & 1 rubygems