'use strict'

function replace (content, properties, property) {
  const find = new RegExp(`<%${property}%>`, 'g')
  const replace = properties[property]

  return content.replace(find, replace)
}

module.exports = (content = '', properties) => {
  const keys = Object.keys(properties)

  return keys.reduce((content, property) => {
    return replace(content, properties, property)
  }, content)
}

@@ -16,23 +16,21 @@
 unction 
-replace
+apply
  (conten
@@ -83,16 +83,17 @@
 RegExp(%60
+/
 %3C%25$%7Bprop
@@ -99,16 +99,18 @@
 perty%7D%25%3E
+/g
 %60, 'g')%0A
@@ -196,24 +196,24 @@
 %0A%7D%0A%0A
-module.exports =
+function replace
  (co
@@ -221,13 +221,8 @@
 tent
- = ''
 , pr
@@ -230,19 +230,16 @@
 perties)
- =%3E
  %7B%0A  con
@@ -330,23 +330,21 @@
  return 
-replace
+apply
 (content
@@ -379,12 +379,44 @@
  content)%0A%7D%0A
+%0Amodule.exports = %7B%0A  replace%0A%7D%0A

Fix the replacer module.