Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: refactor json.js #10442

Closed
wants to merge 1 commit into from
Closed

tools: refactor json.js #10442

wants to merge 1 commit into from

Commits on Dec 24, 2016

  1. tools: refactor json.js

    * Simplify regular expressions (see below)
    * Remove unneeded `parseYAML()` wrapper
    * Remove unused callback argument
    
    Regular expression simplifications include:
    
    * Changing trailing `*?$/` to `*$/` because non-greedy matching to the
      end of a line will not change behavior
    * Change regexp beginnings eike `/^(?:property:?\s*)?[^.\[]+` to the
      equivalent `/[^.\]]+`
    * For regular expressions changed per the above, remove
      case-insensitivity if it no longer affects the regexp
    Trott committed Dec 24, 2016
    Configuration menu
    Copy the full SHA
    b4f5153 View commit details
    Browse the repository at this point in the history