Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101820967
rule.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 14, 01:39
Size
569 B
Mime Type
text/x-c++
Expires
Sun, Feb 16, 01:39 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24237308
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
rule.js
View Options
'use strict'
let
Container
=
require
(
'./container'
)
let
list
=
require
(
'./list'
)
class
Rule
extends
Container
{
constructor
(
defaults
)
{
super
(
defaults
)
this
.
type
=
'rule'
if
(
!
this
.
nodes
)
this
.
nodes
=
[]
}
get
selectors
()
{
return
list
.
comma
(
this
.
selector
)
}
set
selectors
(
values
)
{
let
match
=
this
.
selector
?
this
.
selector
.
match
(
/,\s*/
)
:
null
let
sep
=
match
?
match
[
0
]
:
','
+
this
.
raw
(
'between'
,
'beforeOpen'
)
this
.
selector
=
values
.
join
(
sep
)
}
}
module
.
exports
=
Rule
Rule
.
default
=
Rule
Container
.
registerRule
(
Rule
)
Event Timeline
Log In to Comment