mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2234c8dff1
commit
83a16f6e55
@ -139,6 +139,8 @@ var BaseTagsClassPrototype = {
|
|||||||
return /^\s*(['"]).*\1\s*$/.test(tag) },
|
return /^\s*(['"]).*\1\s*$/.test(tag) },
|
||||||
isStarred: function(tag){
|
isStarred: function(tag){
|
||||||
return /^\s*(\*).*\1\s*$/.test(tag) },
|
return /^\s*(\*).*\1\s*$/.test(tag) },
|
||||||
|
isPattern: function(tag){
|
||||||
|
return /\*/.test(tag) },
|
||||||
//
|
//
|
||||||
// .splitSet(tag)
|
// .splitSet(tag)
|
||||||
// .splitSet(tag, ..)
|
// .splitSet(tag, ..)
|
||||||
@ -456,6 +458,7 @@ var BaseTagsPrototype = {
|
|||||||
// and other approaches...
|
// and other approaches...
|
||||||
isQuoted: BaseTagsClassPrototype.isQuoted,
|
isQuoted: BaseTagsClassPrototype.isQuoted,
|
||||||
isStarred: BaseTagsClassPrototype.isStarred,
|
isStarred: BaseTagsClassPrototype.isStarred,
|
||||||
|
isPattern: BaseTagsClassPrototype.isPattern,
|
||||||
splitSet: BaseTagsClassPrototype.splitSet,
|
splitSet: BaseTagsClassPrototype.splitSet,
|
||||||
splitPath: BaseTagsClassPrototype.splitPath,
|
splitPath: BaseTagsClassPrototype.splitPath,
|
||||||
joinSet: BaseTagsClassPrototype.joinSet,
|
joinSet: BaseTagsClassPrototype.joinSet,
|
||||||
@ -1129,8 +1132,7 @@ var BaseTagsPrototype = {
|
|||||||
var remove = this.normalize(tag instanceof Array ? tag : [tag])
|
var remove = this.normalize(tag instanceof Array ? tag : [tag])
|
||||||
// resolve/match tags...
|
// resolve/match tags...
|
||||||
.map(function(tag){
|
.map(function(tag){
|
||||||
// XXX should we use .isQuoted(..) here???
|
return that.isPattern(tag) ?
|
||||||
return /\*/.test(tag) ?
|
|
||||||
// resolve tag patterns...
|
// resolve tag patterns...
|
||||||
// XXX is .match(..) to broad here???
|
// XXX is .match(..) to broad here???
|
||||||
that.match(tag, local ? tags : null)
|
that.match(tag, local ? tags : null)
|
||||||
@ -1200,7 +1202,7 @@ var BaseTagsPrototype = {
|
|||||||
values = values instanceof Array ? values : [values]
|
values = values instanceof Array ? values : [values]
|
||||||
// NOTE: this is cheating -- if tag is a list it will get
|
// NOTE: this is cheating -- if tag is a list it will get
|
||||||
// stringified before the test...
|
// stringified before the test...
|
||||||
var pattern = /\*/.test(tag)
|
var pattern = this.isPattern(tag)
|
||||||
var ntag = this.normalize(tag instanceof Array ? tag : [tag])
|
var ntag = this.normalize(tag instanceof Array ? tag : [tag])
|
||||||
|
|
||||||
// can't set pattern as tag...
|
// can't set pattern as tag...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user