lib/jekyll/typescript/tsconfig.rb
# read a json file at :path, but allow for comments in the file.
#
read a json file at :path, but allow for comments in the file.
read a json file at : path but allow for comments in the file .
def dumb_read_json(path)
        File.open(path, 'r') do |file|
          JSON.parse(file.read.gsub(/(?:\/\/[^\n]+$)|(?:\/\*(?:[^*]+|\*+(?!\/))*\*\/)/m, ''))
        end
      end
def dumb_read_json ( path ) File . open ( path , 'r' ) do | file | JSON . parse ( file . read . gsub ( / (?: \/ \/ [^ \n ]+$)|(?: \/ \* (?:[^*]+| \* +(?! \/ ))* \* \/ ) /m , '' ) ) end end
read a json file at :path, but allow for comments in the file.
read a json file at : path but allow for comments in the file .
# regxp partially sourced from https://stackoverflow.com/questions/19910002/remove-comments-from-json-data
path
<not_specific>