File tree Expand file tree Collapse file tree 2 files changed +15
-21
lines changed
app/code/Magento/Rule/view/adminhtml/web
dev/tests/static/testsuite/Magento/Test/Less/_files/whitelist Expand file tree Collapse file tree 2 files changed +15
-21
lines changed Original file line number Diff line number Diff line change 5
5
6
6
define ( [
7
7
'jquery' ,
8
- 'underscore' ,
9
- 'prototype'
8
+ 'underscore'
10
9
] , function ( $ , _ ) {
11
10
'use strict' ;
12
11
13
- var ConditionsDataNormalizer = new Class . create ( ) ;
12
+ /**
13
+ * @constructor
14
+ */
15
+ var ConditionsDataNormalizer = function ( ) {
16
+ this . patterns = {
17
+ validate : / ^ [ a - z 0 - 9 _ - ] [ a - z 0 - 9 _ - ] * (?: \[ (?: \d * | [ a - z 0 - 9 _ - ] + ) \] ) * $ / i,
18
+ key : / [ a - z 0 - 9 _ - ] + | (? = \[ \] ) / gi,
19
+ push : / ^ $ / ,
20
+ fixed : / ^ \d + $ / ,
21
+ named : / ^ [ a - z 0 - 9 _ - ] + $ / i
22
+ } ;
23
+ } ;
14
24
15
25
ConditionsDataNormalizer . prototype = {
16
-
17
- /**
18
- * Initializes component.
19
- */
20
- initialize : function ( ) {
21
- this . patterns = {
22
- validate : / ^ [ a - z 0 - 9 _ - ] [ a - z 0 - 9 _ - ] * (?: \[ (?: \d * | [ a - z 0 - 9 _ - ] + ) \] ) * $ / i,
23
- key : / [ a - z 0 - 9 _ - ] + | (? = \[ \] ) / gi,
24
- push : / ^ $ / ,
25
- fixed : / ^ \d + $ / ,
26
- named : / ^ [ a - z 0 - 9 _ - ] + $ / i
27
- } ;
28
- } ,
29
-
30
26
/**
31
27
* Will convert an object:
32
28
* {
@@ -49,8 +45,6 @@ define([
49
45
* }
50
46
* }
51
47
* }
52
- *
53
- *
54
48
*/
55
49
normalize : function normalize ( value ) {
56
50
var el , _this = this ;
Original file line number Diff line number Diff line change 1
- theme * /
2
- library * /
1
+ # Format: <componentType=module|library|theme|language|*> <componentName> <globPattern> or simply <globPattern>
2
+ * * /
You can’t perform that action at this time.
0 commit comments