Support prefixed rewrite rules
Change-Id: I47562cd536747534ace1dc6e0ccb61b341db1b7a
diff --git a/dev/js/src/vc/rewrite.js b/dev/js/src/vc/rewrite.js
index f0dfe34..bd29b9f 100644
--- a/dev/js/src/vc/rewrite.js
+++ b/dev/js/src/vc/rewrite.js
@@ -3,7 +3,7 @@
*/
define(['vc/jsonld', 'util'], function (jsonldClass) {
- var _validRewriteOpRE = new RegExp("^(?:injec|modifica)tion$");
+ var _validRewriteOpRE = new RegExp("^(operation:)?(?:injec|modifica)tion$");
return {
// Construction method
@@ -28,8 +28,8 @@
if (_validRewriteOpRE.test(op)) {
this._op = op;
}
- else {
- KorAP.log(814, "Unknown rewrite operation");
+ else {
+ KorAP.log(814, "Unknown rewrite operation");
return;
};
};