mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixing regexp errors and cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
170b77981f
commit
7c123bdcca
@ -80,9 +80,9 @@ var normalizeSplit = function(args){
|
|||||||
|
|
||||||
var BaseTagsClassPrototype = {
|
var BaseTagsClassPrototype = {
|
||||||
|
|
||||||
PATH_SEPARATOR: /[\\\/]+/g,
|
PATH_SEPARATOR: /[\\\/]+/,
|
||||||
SET_SEPARATOR: /:+/g,
|
SET_SEPARATOR: /:+/,
|
||||||
COMBINED_SEPARATOR: /[:\\\/]+/g,
|
COMBINED_SEPARATOR: /[:\\\/]+/,
|
||||||
|
|
||||||
splitSet: function(str){
|
splitSet: function(str){
|
||||||
return str.split(this.SET_SEPARATOR) },
|
return str.split(this.SET_SEPARATOR) },
|
||||||
@ -558,9 +558,6 @@ var BaseTagsPrototype = {
|
|||||||
// // path search is directional...
|
// // path search is directional...
|
||||||
// ts.match('c', 'a') // -> false
|
// ts.match('c', 'a') // -> false
|
||||||
//
|
//
|
||||||
//
|
|
||||||
// XXX MUG: the path graph search seems to happen iff all of the needed
|
|
||||||
// chains are actually used to tag values...
|
|
||||||
match: function(a, b, cmp){
|
match: function(a, b, cmp){
|
||||||
var that = this
|
var that = this
|
||||||
|
|
||||||
@ -572,8 +569,7 @@ var BaseTagsPrototype = {
|
|||||||
var paths = function(tag){
|
var paths = function(tag){
|
||||||
return that.directMatch(tag, cmp)
|
return that.directMatch(tag, cmp)
|
||||||
.filter(function(t){
|
.filter(function(t){
|
||||||
return /[\\\/]/.test(t) }) }
|
return that.PATH_SEPARATOR.test(t) }) }
|
||||||
//return that.PATH_SEPARATOR.test(t) }) }
|
|
||||||
// search the path tree...
|
// search the path tree...
|
||||||
// NOTE: this will stop the search on first hit...
|
// NOTE: this will stop the search on first hit...
|
||||||
var search = function(tag, seen){
|
var search = function(tag, seen){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user