deardesi.js/components/version/interpolate-filter.js

14 lines
257 B
JavaScript

"use strict";
angular
.module("myApp.version.interpolate-filter", [])
.filter("interpolate", [
"version",
function (version) {
return function (text) {
return String(text).replace(/\%VERSION\%/gm, version);
};
},
]);