Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
011e95b3
Commit
011e95b3
authored
Jun 16, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graphite query lexer change, can now handle regex parameters for aliasSub function (Fixes #126)
parent
da451d01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
56 deletions
+1
-56
CHANGELOG.md
+1
-0
src/app/services/graphite/lexer.js
+0
-56
No files found.
CHANGELOG.md
View file @
011e95b3
...
...
@@ -28,6 +28,7 @@
Use datasources config instead. panel_names removed from config.js. Use plugins.panels to add custom panels
#### Fixes
-
Graphite query lexer change, can now handle regex parameters for aliasSub function (Fixes #126)
-
Filter option loading when having muliple nested filters now works better.
Options are now reloaded correctly and there are no multiple renders/refresh inbetween (#447),
After an option is changed and a nested template param is also reloaded, if the current value
...
...
src/app/services/graphite/lexer.js
View file @
011e95b3
...
...
@@ -646,62 +646,6 @@ define([
var
jump
=
1
;
// A length of a jump, after we're done
// parsing this character.
// Special treatment for some escaped characters.
if
(
char
===
"
\
\"
) {
this.skip();
char = this.peek();
switch (char) {
case "
'":
break;
case "b":
char = "
\
b";
break;
case "f":
char = "
\
f";
break;
case "n":
char = "
\
n";
break;
case "r":
char = "
\
r";
break;
case "t":
char = "
\
t";
break;
case "0":
char = "
\
0";
break;
case "u":
char = String.fromCharCode(parseInt(this.input.substr(1, 4), 16));
jump = 5;
break;
case "v":
char = "
\
v";
break;
case "x":
var x = parseInt(this.input.substr(1, 2), 16);
char = String.fromCharCode(x);
jump = 3;
break;
case "
\\
":
case "
\
"":
case "/":
break;
case "":
char = "";
break;
case "!":
if (value.slice(value.length - 2) === "<") {
break;
}
/*falls through */
default:
// Weird escaping.
}
}
value
+=
char
;
this
.
skip
(
jump
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment