From 6cadb5f649a4a70049ae8529f5ba80819dc4d3e0 Mon Sep 17 00:00:00 2001 From: Avris Date: Fri, 24 Jul 2020 22:11:34 +0200 Subject: [PATCH] minor fix --- src/classes.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/classes.js b/src/classes.js index 12ec640b..007bd9e3 100644 --- a/src/classes.js +++ b/src/classes.js @@ -132,13 +132,13 @@ export const morphemes = [ const escape = s => { return (s || '') - .replace(',', '') - .replace('!', '') - .replace('.', '') - //.replace('/', '%2F') - .replace('#', '%23') - .replace('?', '%3F') - .replace('&', '%26'); + .replace(/,/g, '') + .replace(/!/g, '') + .replace(/\./g, '') + //.replace(/\/', '%2F') + .replace(/#/g, '%23') + .replace(/\?/g, '%3F') + .replace(/&/g, '%26'); } export class Template {