From ce97268895358d65ea705a4d1274fe08031a59da Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 1 Apr 2017 10:06:23 -0400 Subject: [PATCH] fix #747 --- src/js/matrix.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/js/matrix.js b/src/js/matrix.js index 5be8a65..147b52c 100644 --- a/src/js/matrix.js +++ b/src/js/matrix.js @@ -1,7 +1,7 @@ /******************************************************************************* - µMatrix - a Chromium browser extension to black/white list requests. - Copyright (C) 2014 Raymond Hill + uMatrix - a Chromium browser extension to black/white list requests. + Copyright (C) 2014-2017 Raymond Hill This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,15 +19,15 @@ Home: https://github.com/gorhill/uMatrix */ -/* global punycode, µMatrix */ +/* global punycode */ /* jshint bitwise: false */ +'use strict'; + /******************************************************************************/ µMatrix.Matrix = (function() { -'use strict'; - /******************************************************************************/ var µm = µMatrix; @@ -768,8 +768,7 @@ Matrix.prototype.fromString = function(text, append) { } // Unknown directive - pos = fieldVal.indexOf(':'); - if ( pos !== -1 ) { + if ( fieldVal.endsWith(':') ) { continue; }