PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / trunk
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel vtrunk
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / static / js / validate-braces.js
wp-all-export / static / js Last commit date
jquery 4 weeks ago admin.js 4 weeks ago pmxe.js 3 years ago scheduling.js 4 weeks ago upgrade-notice.js 4 years ago validate-braces.js 8 years ago
validate-braces.js
29 lines
1 function wpaeValidateBraces(str) {
2 var i, ch, expectedBracket;
3
4 var temp = [];
5 var len = str.length;
6
7 var openingBrackets = ['[', '{', '('];
8 var closingBrackets = [']', '}', ')'];
9
10 for (i = 0; i < len; i++) {
11 ch = str[i];
12
13 if (openingBrackets.indexOf(ch) > -1) {
14 temp.push(ch);
15 } else if (closingBrackets.indexOf(ch) > -1) {
16
17 expectedBracket = openingBrackets[closingBrackets.indexOf(ch)];
18 if (temp.length === 0 || (temp.pop() !== expectedBracket)) {
19 return false;
20 }
21
22 } else {
23 // Ignore the characters which do not match valid Brackets symbol
24 continue;
25 }
26 }
27
28 return (temp.length === 0);
29 }