Skip to content

Commit

Permalink
fix:typo in require module
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Dec 17, 2016
1 parent 48e0e66 commit b8e002f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/cms/templates/prepare.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Handlebars from 'handlebars'
import stripTags from 'stripTags'
import striptags from 'striptags'

import {
cmsData
Expand Down Expand Up @@ -200,7 +200,7 @@ export function addAbeSourceComment(template, json) {
*/
export function addAbeHtmlTagBetweenAbeTags(template) {
var match
var templateNoDom = stripTags(template)
var templateNoDom = striptags(template)
while (match = cmsData.regex.abeAsTagPattern.exec(templateNoDom)) {
template = template.replace(cmsData.regex.escapeTextToRegex(match[1], 'g'), '<abe>' + match[1].trim() + '</abe>')
}
Expand Down

0 comments on commit b8e002f

Please sign in to comment.