@abaplint/core 2.99.6 → 2.99.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -842,7 +842,23 @@ class BasicTypes {
|
|
|
842
842
|
}
|
|
843
843
|
const constant = val.findFirstExpression(Expressions.Constant);
|
|
844
844
|
if (constant) {
|
|
845
|
-
|
|
845
|
+
const conc = val.findFirstExpression(Expressions.ConcatenatedConstant);
|
|
846
|
+
if (conc) {
|
|
847
|
+
const first = conc.getFirstToken().getStr().substring(0, 1);
|
|
848
|
+
let result = "";
|
|
849
|
+
for (const token of conc.getAllTokens()) {
|
|
850
|
+
if (token.getStr() === "&") {
|
|
851
|
+
continue;
|
|
852
|
+
}
|
|
853
|
+
else {
|
|
854
|
+
result += token.getStr().substring(1, token.getStr().length - 1);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
return first + result + first;
|
|
858
|
+
}
|
|
859
|
+
else {
|
|
860
|
+
return constant.concatTokens();
|
|
861
|
+
}
|
|
846
862
|
}
|
|
847
863
|
const chain = val.findFirstExpression(Expressions.SimpleFieldChain);
|
|
848
864
|
if (chain) {
|
package/build/src/registry.js
CHANGED
|
@@ -29,7 +29,7 @@ https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abenopensql_strict_mo
|
|
|
29
29
|
Also see separate rule sql_escape_host_variables
|
|
30
30
|
|
|
31
31
|
Activates from v750 and up`,
|
|
32
|
-
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.
|
|
32
|
+
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Quickfix],
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
getConfig() {
|
|
@@ -72,7 +72,6 @@ Activates from v750 and up`,
|
|
|
72
72
|
const message = "INTO/APPENDING must be last in strict SQL";
|
|
73
73
|
const issue = issue_1.Issue.atToken(file, s.getFirstToken(), message, this.getMetadata().key, this.conf.severity, fix);
|
|
74
74
|
issues.push(issue);
|
|
75
|
-
break;
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
return issues;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.99.
|
|
3
|
+
"version": "2.99.8",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@microsoft/api-extractor": "^7.34.8",
|
|
51
51
|
"@types/chai": "^4.3.5",
|
|
52
52
|
"@types/mocha": "^10.0.1",
|
|
53
|
-
"@types/node": "^20.
|
|
53
|
+
"@types/node": "^20.1.0",
|
|
54
54
|
"chai": "^4.3.7",
|
|
55
|
-
"eslint": "^8.
|
|
55
|
+
"eslint": "^8.40.0",
|
|
56
56
|
"mocha": "^10.2.0",
|
|
57
57
|
"c8": "^7.13.0",
|
|
58
58
|
"source-map-support": "^0.5.21",
|