diff options
| author | Johan Liesén | 2012-09-06 10:33:33 +0200 | 
|---|---|---|
| committer | Johan Liesén | 2012-09-06 10:45:13 +0200 | 
| commit | 5901cee9b9b7df3ad07e3cf895bf74fb65b276cc (patch) | |
| tree | 5ea62431daf94f2861d458fd0893be3dfbc25c03 | |
| parent | edb1d3c8a5a5d9af7349cb87dda7a722b5210360 (diff) | |
| download | vimium-5901cee9b9b7df3ad07e3cf895bf74fb65b276cc.tar.bz2 | |
Align regex comments on the same line as the expression
| -rw-r--r-- | lib/utils.coffee | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/lib/utils.coffee b/lib/utils.coffee index 597e5f6c..c5bfcc26 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -47,12 +47,9 @@ Utils =    isUrl: (str) ->      # More or less RFC compliant URL host part parsing. This should be sufficient for our needs      urlRegex = new RegExp( -      # user:password (optional)     => \1, \2 -      '^(?:([^:]+)(?::([^:]+))?@)?' + -      # host name (IPv6 addresses in square brackets allowed) => \3 -      '([^:]+|\\[[^\\]]+\\])' + -      # port number (optional) => \4 -      '(?::(\\d+))?$' +      '^(?:([^:]+)(?::([^:]+))?@)?' + # user:password (optional) => \1, \2 +      '([^:]+|\\[[^\\]]+\\])' + # host name (IPv6 addresses in square brackets allowed) => \3 +      '(?::(\\d+))?$' # port number (optional) => \4        )      # Official ASCII TLDs that are longer than 3 characters | 
