1 | ;
|
2 | const utils = require('handlebars-utils');
|
3 | const common = require('../lib/common.js');
|
4 |
|
5 | function helper(paper) {
|
6 | paper.handlebars.registerHelper('stripQuerystring', function(url) {
|
7 | url = common.unwrapIfSafeString(url);
|
8 | if (utils.isString(url)) {
|
9 | return url.split('?')[0];
|
10 | }
|
11 | });
|
12 | }
|
13 |
|
14 | module.exports = helper;
|