Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
Parser.js
01 var regexps = config.regexps,
02 tagName = config.tagName,
03 attrName = config.attrName;
04
05 var onlyFirst = config.onlyFirst,
06 keywords = {};
07
08 regexps.forEach(function(regexp)
09 {
10 var m;
11
12 regexp.lastIndex = 0;
13 while (m = regexp.exec(text))
14 {
15 // NOTE: coercing m.index to a number because Closure Compiler thinks pos is a string otherwise
16 var value = m[0],
17 pos = +m['index'];
18
19 if (onlyFirst)
20 {
21 if (value in keywords)
22 {
23 continue;
24 }
25
26 keywords[value] = 1;
27 }
28
29 addSelfClosingTag(tagName, pos, value.length).setAttribute(attrName, value);
30 }
31 });