Skip to content

Commit

Permalink
Use regexp syntax to be kinder to GitHub's highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorcoran committed Jul 23, 2018
1 parent 009cb81 commit ae0a8a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/travis/env_vars.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def self.parse(obj)

module Parser
class String
KEY = /[^\s=]+/
WORD = /(\\["']|[^'"\s])+/
QUOTE = /(['"]{1})/
SPACE = /\s+/
EQUAL = /=/
KEY = %r{[^\s=]+}
WORD = %r{(\\["']|[^'"\s])+}
QUOTE = %r{(['"]{1})}
SPACE = %r{\s+}
EQUAL = %r{=}

extend Forwardable

Expand Down

0 comments on commit ae0a8a1

Please sign in to comment.